5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 09:30:28 +00:00

Remove apparently excessive escaping from netsh in tun_windows.go

This commit is contained in:
Neil Alexander 2018-01-24 22:37:08 +00:00
parent ff55070458
commit 761e7cdeb0

View File

@ -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 {