adding debug statement and updating release notes

This commit is contained in:
Mary Lincy Dcouto
2021-05-20 17:53:55 +05:30
parent cc0b6cb688
commit d7849e84cf
2 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -6,9 +6,11 @@
## Other changes:
* updated auto-installation config
* renewed signing cert
* added dns cache output back to feedback.zip
* set lower metric, if dns server property is set
## Bugs fixed:
* set lower metric, if dns server property is set
* none
## Dependency Updates
* tsdk is updated to v0.15.6, c-sdk 0.22.5
+4 -3
View File
@@ -225,6 +225,7 @@ func (t *RuntimeState) CreateTun(ipv4 string, ipv4mask int, applyDns bool) (net.
log.Info("routing applied")
zitiPoliciesEffective := windns.IsNrptPoliciesEffective(ipv4)
interfaceMetric := 255
if applyDns || !zitiPoliciesEffective {
if applyDns {
log.Infof("DNS is applied to the TUN interface, because apply Dns flag in the config file is %t ", applyDns)
@@ -234,10 +235,10 @@ func (t *RuntimeState) CreateTun(ipv4 string, ipv4mask int, applyDns bool) (net.
}
//for windows 10+, could 'domains' be able to replace NRPT? dunno - didn't test it
luid.SetDNS(windows.AF_INET, []net.IP{ip}, nil)
cziti.SetInterfaceMetric(TunName, 5)
} else {
cziti.SetInterfaceMetric(TunName, 255)
interfaceMetric = 5
}
cziti.SetInterfaceMetric(TunName, interfaceMetric)
log.Debugf("Interface Metric of %s is set to %d", TunName, interfaceMetric)
return ip, t.tun, nil
}