mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix Windows build
This commit is contained in:
		
							parent
							
								
									7b1635245f
								
							
						
					
					
						commit
						6ac2fae845
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -9,7 +9,7 @@ import (
 | 
				
			||||||
	"log"
 | 
						"log"
 | 
				
			||||||
	"net"
 | 
						"net"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"github.com/yggdrasil-network/yggdrasil-go/src/defaults"
 | 
						"github.com/yggdrasil-network/yggdrasil-go/src/config"
 | 
				
			||||||
	"golang.org/x/sys/windows"
 | 
						"golang.org/x/sys/windows"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wgtun "golang.zx2c4.com/wireguard/tun"
 | 
						wgtun "golang.zx2c4.com/wireguard/tun"
 | 
				
			||||||
| 
						 | 
					@ -22,7 +22,7 @@ import (
 | 
				
			||||||
// Configures the TUN adapter with the correct IPv6 address and MTU.
 | 
					// Configures the TUN adapter with the correct IPv6 address and MTU.
 | 
				
			||||||
func (tun *TunAdapter) setup(ifname string, addr string, mtu uint64) error {
 | 
					func (tun *TunAdapter) setup(ifname string, addr string, mtu uint64) error {
 | 
				
			||||||
	if ifname == "auto" {
 | 
						if ifname == "auto" {
 | 
				
			||||||
		ifname = defaults.GetDefaults().DefaultIfName
 | 
							ifname = config.GetDefaults().DefaultIfName
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return elevate.DoAsSystem(func() error {
 | 
						return elevate.DoAsSystem(func() error {
 | 
				
			||||||
		var err error
 | 
							var err error
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue