fix: ipv6 enable logic

This commit is contained in:
adlyq 2022-04-23 14:21:58 +08:00
parent 9c2ca0feb0
commit ce663a7b96

View file

@ -248,9 +248,9 @@ func updateGeneral(general *config.General, force bool) {
tunnel.SetMode(general.Mode) tunnel.SetMode(general.Mode)
dialer.DisableIPv6 = !general.IPv6 dialer.DisableIPv6 = !general.IPv6
if !dialer.DisableIPv6 { if !dialer.DisableIPv6 {
resolver.DisableIPv6 = false
} else {
log.Infoln("Use IPv6") log.Infoln("Use IPv6")
} else {
resolver.DisableIPv6 = true
} }
dialer.TCPConcurrent = general.TCPConcurrent dialer.TCPConcurrent = general.TCPConcurrent