mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Remove apparently excessive escaping from netsh in tun_windows.go
This commit is contained in:
		
							parent
							
								
									ff55070458
								
							
						
					
					
						commit
						761e7cdeb0
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue