On Mon, Jul 2, 2018 at 11:52 PM, Mark Jeffrey <[email protected]> wrote:
> Subject: Resume e-mail Search Search New folder Add e-mail account Premium
> Features Help Settings About us Slow DNS lookup causing slow web browsing
> when connected to VPN on Windows 10 (solved)
Something went slightly crazy with your subject line :-).
> I think a better option is to modify the script to remove the DNS servers
> before adding the new one(s):
In patch form…
diff --git a/vpnc-script-win.js b/vpnc-script-win.js
index a3a0974..6950452 100644
--- a/vpnc-script-win.js
+++ b/vpnc-script-win.js
@@ -115,6 +115,8 @@ case "connect":
if (env("INTERNAL_IP4_DNS")) {
var dns = env("INTERNAL_IP4_DNS").split(/ /);
+ run("netsh interface ip delete dns \"" +
+ env("TUNDEV") + " all");
for (var i = 0; i < dns.length; i++) {
run("netsh interface ip add dns \"" +
env("TUNDEV") + "\" " + dns[i]
Perhaps this ought to be tweaked so that the DNS servers are deleted
unconditionally, before setting up the tunnel device, whether or not
INTERNAL_IP4_DNS is set…?
Dan
_______________________________________________
openconnect-devel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/openconnect-devel