Disable Windows DNS registration
This commit is contained in:
parent
1a85bd3ef4
commit
efd9884154
3 changed files with 40 additions and 4 deletions
|
|
@ -88,6 +88,9 @@ func (t *NativeTun) configure() error {
|
|||
return E.Cause(err, "set ipv6 dns")
|
||||
}
|
||||
}
|
||||
if len(t.options.Inet4Address) > 0 || len(t.options.Inet6Address) > 0 {
|
||||
_ = luid.DisableDNSRegistration()
|
||||
}
|
||||
if t.options.AutoRoute {
|
||||
if len(t.options.Inet4Address) > 0 {
|
||||
if len(t.options.Inet4RouteAddress) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue