all: use netip for web

This commit is contained in:
Eugene Burkov
2022-09-29 14:56:37 +03:00
parent e528d2f23b
commit de837e4eec
10 changed files with 41 additions and 45 deletions

View File

@@ -340,7 +340,7 @@ func setupConfig(args options) (err error) {
}
// override bind host/port from the console
if args.bindHost != nil {
if args.bindHost.IsValid() {
config.BindHost = args.bindHost
}
if len(args.pidFile) != 0 && writePIDFile(args.pidFile) {