mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 14:10:28 +00:00
Remove apparently excessive escaping from netsh in tun_windows.go
This commit is contained in:
parent
ff55070458
commit
761e7cdeb0
@ -24,8 +24,8 @@ func (tun *tunDevice) setupAddress(addr string) error {
|
|||||||
// Set address
|
// Set address
|
||||||
// addr = strings.TrimRight(addr, "/8")
|
// addr = strings.TrimRight(addr, "/8")
|
||||||
cmd := exec.Command("netsh", "interface", "ipv6", "set", "address",
|
cmd := exec.Command("netsh", "interface", "ipv6", "set", "address",
|
||||||
fmt.Sprintf("interface=\"%s\"", tun.iface.Name()),
|
fmt.Sprintf("interface=%s", tun.iface.Name()),
|
||||||
fmt.Sprintf("addr=\"%s\"", addr))
|
fmt.Sprintf("addr=%s", addr))
|
||||||
tun.core.log.Printf("netsh command: %v", strings.Join(cmd.Args, " "))
|
tun.core.log.Printf("netsh command: %v", strings.Join(cmd.Args, " "))
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user