I'm an idiot who forgot to flag.Parse()
This commit is contained in:
parent
bb3cea2ce2
commit
d2d8e6ecad
2
main.go
2
main.go
|
@ -50,6 +50,8 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
flag.Parse()
|
||||||
|
|
||||||
viper.SetDefault("bind", ":8080")
|
viper.SetDefault("bind", ":8080")
|
||||||
|
|
||||||
viper.SetConfigName("dlrouter") // name of config file (without extension)
|
viper.SetConfigName("dlrouter") // name of config file (without extension)
|
||||||
|
|
Loading…
Reference in New Issue