From 761e7cdeb03884a0a6229c35ab770e1801e9849b Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 24 Jan 2018 22:37:08 +0000 Subject: [PATCH] Remove apparently excessive escaping from netsh in tun_windows.go --- src/yggdrasil/tun_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yggdrasil/tun_windows.go b/src/yggdrasil/tun_windows.go index ee0134a..edfe681 100644 --- a/src/yggdrasil/tun_windows.go +++ b/src/yggdrasil/tun_windows.go @@ -24,8 +24,8 @@ func (tun *tunDevice) setupAddress(addr string) error { // Set address // addr = strings.TrimRight(addr, "/8") cmd := exec.Command("netsh", "interface", "ipv6", "set", "address", - fmt.Sprintf("interface=\"%s\"", tun.iface.Name()), - fmt.Sprintf("addr=\"%s\"", addr)) + fmt.Sprintf("interface=%s", tun.iface.Name()), + fmt.Sprintf("addr=%s", addr)) tun.core.log.Printf("netsh command: %v", strings.Join(cmd.Args, " ")) output, err := cmd.CombinedOutput() if err != nil {