diff --git a/sdk/freeport/ephemeral_linux.go b/sdk/freeport/ephemeral_linux.go index 00b8815e1..c93765fea 100644 --- a/sdk/freeport/ephemeral_linux.go +++ b/sdk/freeport/ephemeral_linux.go @@ -14,7 +14,7 @@ const ephemeralPortRangeSysctlKey = "net.ipv4.ip_local_port_range" var ephemeralPortRangePatt = regexp.MustCompile(`^\s*(\d+)\s+(\d+)\s*$`) func getEphemeralPortRange() (int, int, error) { - cmd := exec.Command("sysctl", "-n", ephemeralPortRangeSysctlKey) + cmd := exec.Command("/sbin/sysctl", "-n", ephemeralPortRangeSysctlKey) out, err := cmd.Output() if err != nil { return 0, 0, err