mirror of
https://github.com/net-byte/go-gateway.git
synced 2024-04-21 12:21:40 +00:00
fix
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ func discoverGatewayOSSpecificIPv4() (ip net.IP, err error) {
|
||||
}
|
||||
|
||||
func discoverGatewayOSSpecificIPv6() (ip net.IP, err error) {
|
||||
routeCmd := exec.Command("route", "print","-6" "::/0")
|
||||
routeCmd := exec.Command("route", "print", "-6", "::/0")
|
||||
routeCmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
||||
output, err := routeCmd.CombinedOutput()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user