Merge remote-tracking branch 'origin/main' into multi-tenant
This commit is contained in:
@@ -255,7 +255,7 @@ func main() {
|
||||
// register feature service gin.Engine
|
||||
features.InitServiceEngine(app)
|
||||
|
||||
var listenLocalhost bool = false
|
||||
// var listenLocalhost bool = false
|
||||
for _, rest := range conf.Rest {
|
||||
// ipv4 goroutines
|
||||
if rest.IPv4 != "" {
|
||||
@@ -266,16 +266,16 @@ func main() {
|
||||
go HttpListen(listen, app)
|
||||
}
|
||||
}
|
||||
if rest.IPv4 != "0.0.0.0" && !listenLocalhost {
|
||||
listenLocalhost = true
|
||||
// 默认启动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)
|
||||
}
|
||||
}
|
||||
// if rest.IPv4 != "0.0.0.0" && !listenLocalhost {
|
||||
// listenLocalhost = true
|
||||
// // 默认启动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))
|
||||
|
||||
Reference in New Issue
Block a user