Skip to content

Commit

Permalink
Merge pull request #669 from Darkren/feature/change-route-to-ip-vpn-s…
Browse files Browse the repository at this point in the history
…erver

Call `ip` instead of `route` to fetch active network interface
  • Loading branch information
jdknives committed Jan 27, 2021
2 parents e398e87 + 4d20baf commit 3ebf394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/vpn/os_server_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
defaultNetworkInterfaceCMD = "route | awk '$1 == \"default\" {print $8}'"
defaultNetworkInterfaceCMD = "ip r | awk '$1 == \"default\" {print $5}'"
getIPv4ForwardingCMD = "sysctl net.ipv4.ip_forward"
getIPv6ForwardingCMD = "sysctl net.ipv6.conf.all.forwarding"
setIPv4ForwardingCMDFmt = "sysctl -w net.ipv4.ip_forward=%s"
Expand Down

0 comments on commit 3ebf394

Please sign in to comment.