fix: 相关测试配置

This commit is contained in:
TsMask
2024-07-12 17:45:51 +08:00
parent 04b3fb3e43
commit 1104be0b19
5 changed files with 11 additions and 21 deletions

View File

@@ -214,15 +214,6 @@ func main() {
go HttpListen(listen, app)
}
}
// if rest.IPv4 != "0.0.0.0" {
// // 默认启动localhost侦听
// listenLocal := "127.0.0.1" + ":" + strconv.Itoa(int(rest.Port))
// if strings.ToLower(rest.Scheme) == "https" {
// go HttpListenTLS(listenLocal, rest.CaFile, rest.CertFile, rest.KeyFile, rest.ClientAuthType, app)
// } else {
// go HttpListen(listenLocal, app)
// }
// }
// ipv6 goroutines
if rest.IPv6 != "" {
listenv6 := "[" + rest.IPv6 + "]" + ":" + strconv.Itoa(int(rest.Port))