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
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ import (
)
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
......@@ -30,7 +30,7 @@ func main() {
if err != nil {
panic(err)
}
conf = config.Load(opts.configFile)
conf = config.Load(opts.ConfigFile)
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