fix: localhost侦听

This commit is contained in:
2023-12-20 17:28:24 +08:00
parent f607662032
commit 4609a446af

View File

@@ -217,15 +217,15 @@ func main() {
}
}
if rest.IPv6 != "::" {
// 默认启动localhost侦听
listenv6Local := "[" + "::1" + "]" + ":" + strconv.Itoa(int(rest.Port))
if strings.ToLower(rest.Scheme) == "https" {
go HttpListenTLS(listenv6Local, rest.CaFile, rest.CertFile, rest.KeyFile, app)
} else {
go HttpListen(listenv6Local, app)
}
}
// if rest.IPv6 != "::" {
// // 默认启动localhost侦听
// listenv6Local := "[" + "::1" + "]" + ":" + strconv.Itoa(int(rest.Port))
// if strings.ToLower(rest.Scheme) == "https" {
// go HttpListenTLS(listenv6Local, rest.CaFile, rest.CertFile, rest.KeyFile, app)
// } else {
// go HttpListen(listenv6Local, app)
// }
// }
}
if conf.WebServer.Enabled {