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