Skip to content
Snippets Groups Projects
Commit 790ea036 authored by Bolke de Bruin's avatar Bolke de Bruin
Browse files

Change order to satisfy go-flags

parent bdd0155d
Loading
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
) )
var opts struct { var opts struct {
configFile string `short:"c" long:"conf" description:"config file (yaml)" default:"rdpgw.yaml"` ConfigFile string `short:"c" long:"conf" default:"rdpgw.yaml" description:"config file (yaml)"`
} }
var conf config.Configuration var conf config.Configuration
...@@ -30,7 +30,7 @@ func main() { ...@@ -30,7 +30,7 @@ func main() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
conf = config.Load(opts.configFile) conf = config.Load(opts.ConfigFile)
security.VerifyClientIP = conf.Security.VerifyClientIp security.VerifyClientIP = conf.Security.VerifyClientIp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment