mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-11-22 10:03:33 +00:00
chore: ignored invalid dns-mode for tun
This commit is contained in:
1 parent
3c0d10a503
commit
7907040f27
1 file changed
+2
-1
@@ -277,7 +277,8 @@ func New(options LC.Tun, tunnel C.Tunnel, additions ...inbound.Addition) (l *Lis
|
||||
switch options.DNSMode {
|
||||
case "", tun.DNSModeDisabled, tun.DNSModeNative, tun.DNSModeHijack:
|
||||
default:
|
||||
return nil, fmt.Errorf("invalid dns-mode: %s", options.DNSMode)
|
||||
log.Warnln("[TUN] ignored invalid dns-mode: %s", options.DNSMode)
|
||||
options.DNSMode = ""
|
||||
}
|
||||
|
||||
var dnsAdds []netip.AddrPort
|
||||
|
||||
Reference in new issue
Block a user