From ce663a7b96512a5a066f6d342515416aae0e530f Mon Sep 17 00:00:00 2001 From: adlyq <2833154405@qq.com> Date: Sat, 23 Apr 2022 14:21:58 +0800 Subject: [PATCH] fix: ipv6 enable logic --- hub/executor/executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index a92aaee6..8f911840 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -248,9 +248,9 @@ func updateGeneral(general *config.General, force bool) { tunnel.SetMode(general.Mode) dialer.DisableIPv6 = !general.IPv6 if !dialer.DisableIPv6 { - resolver.DisableIPv6 = false - } else { log.Infoln("Use IPv6") + } else { + resolver.DisableIPv6 = true } dialer.TCPConcurrent = general.TCPConcurrent