mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-25 09:33:28 +02:00
Change order to satisfy go-flags
This commit is contained in:
parent
bdd0155dbb
commit
790ea0369c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue