diff options
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -17,7 +17,6 @@ package main import ( "encoding/json" - "flag" "os" "path" "time" @@ -37,7 +36,7 @@ var ( type systrayConfig struct { LastNotification time.Time Donated time.Time - SelectWateway bool + SelectGateway bool UserStoppedVPN bool } @@ -53,7 +52,6 @@ func parseConfig() *systrayConfig { dec := json.NewDecoder(f) err = dec.Decode(&conf) - conf.parseFlags() return &conf } @@ -62,11 +60,6 @@ func (c *systrayConfig) setUserStoppedVPN(vpnStopped bool) error { return c.save() } -func (c *systrayConfig) parseFlags() { - flag.BoolVar(&c.SelectWateway, "select-gateway", false, "Enable gateway selection") - flag.Parse() -} - func (c *systrayConfig) hasDonated() bool { return c.Donated.Add(oneMonth).After(time.Now()) } |