Skip to content
Snippets Groups Projects
Commit 061a5902 authored by Pratik Lagaskar's avatar Pratik Lagaskar
Browse files

Update vpnhole/vpnhole.go

parent 07c14d4f
Branches fixed-entry-point
No related tags found
1 merge request!3Fixed entry point for the library
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment