mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +00:00
wgengine/router: include command output if ip rule list
fails.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
e83d02ffd1
commit
381b94d4d1
@ -391,7 +391,7 @@ func (r *linuxRouter) addBypassRule() error {
|
||||
func (r *linuxRouter) delBypassRule() error {
|
||||
out, err := exec.Command("ip", "rule", "list", "priority", "10000").CombinedOutput()
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("listing ip rules: %v\n%s", err, out)
|
||||
}
|
||||
if len(out) == 0 {
|
||||
// No rule exists.
|
||||
|
Loading…
x
Reference in New Issue
Block a user