fix: ipv6 enable logic
This commit is contained in:
parent
9c2ca0feb0
commit
ce663a7b96
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue