fix: localhost侦听
This commit is contained in:
@@ -217,15 +217,15 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if rest.IPv6 != "::" {
|
// if rest.IPv6 != "::" {
|
||||||
// 默认启动localhost侦听
|
// // 默认启动localhost侦听
|
||||||
listenv6Local := "[" + "::1" + "]" + ":" + strconv.Itoa(int(rest.Port))
|
// listenv6Local := "[" + "::1" + "]" + ":" + strconv.Itoa(int(rest.Port))
|
||||||
if strings.ToLower(rest.Scheme) == "https" {
|
// if strings.ToLower(rest.Scheme) == "https" {
|
||||||
go HttpListenTLS(listenv6Local, rest.CaFile, rest.CertFile, rest.KeyFile, app)
|
// go HttpListenTLS(listenv6Local, rest.CaFile, rest.CertFile, rest.KeyFile, app)
|
||||||
} else {
|
// } else {
|
||||||
go HttpListen(listenv6Local, app)
|
// go HttpListen(listenv6Local, app)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
if conf.WebServer.Enabled {
|
if conf.WebServer.Enabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user