From 4609a446af23ef69db077643577682a969e24610 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 20 Dec 2023 17:28:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20localhost=E4=BE=A6=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restagent/restagent.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/restagent/restagent.go b/restagent/restagent.go index e19543c0..d18445f3 100644 --- a/restagent/restagent.go +++ b/restagent/restagent.go @@ -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 {