mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-30 23:46:36 +00:00
Change order to satisfy go-flags
This commit is contained in:
@@ -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() {
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user