Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vpn Hole
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
Vpn Hole
Commits
061a5902
Commit
061a5902
authored
2 years ago
by
Pratik Lagaskar
Browse files
Options
Downloads
Patches
Plain Diff
Update vpnhole/vpnhole.go
parent
07c14d4f
Branches
fixed-entry-point
Branches containing commit
No related tags found
1 merge request
!3
Fixed entry point for the library
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vpnhole/vpnhole.go
+5
-5
5 additions, 5 deletions
vpnhole/vpnhole.go
with
5 additions
and
5 deletions
vpnhole/vpnhole.go
+
5
−
5
View file @
061a5902
...
...
@@ -6,15 +6,15 @@ import (
var
ErrShutdown
=
fmt
.
Errorf
(
"vpnhole was shutdown gracefully"
)
type
Config
struct
{
type
vpnholeclient
struct
{
Addr
string
SubscriptionsFilename
string
Upstream
string
}
// parse the flags and return the config struct with the values
func
ParseFlags
()
Config
{
return
Config
{
func
ParseFlags
()
vpnholeclient
{
return
vpnholeclient
{
Addr
:
":53"
,
SubscriptionsFilename
:
"subs.list"
,
Upstream
:
"1.1.1.1:53"
,
...
...
@@ -22,11 +22,11 @@ func ParseFlags() Config {
}
// start the vpnhole
func
(
c
*
Config
)
Start
()
error
{
func
(
c
*
vpnholeclient
)
Start
()
error
{
return
nil
}
// stop the vpnhole
func
(
c
*
Config
)
Stop
()
error
{
func
(
c
*
vpnholeclient
)
Stop
()
error
{
return
nil
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment