fix(tools): return code after port forward fails in manage tunnel

main
Tsu-ba-me 1 year ago committed by Yanhao Lei
parent 3e5fde0e2d
commit 5c9bd9cd14
  1. 2
      tools/anvil-manage-tunnel

@ -203,7 +203,7 @@ sub manage_tunnel
$anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => $debug, list => { forward_opt => $forward_opt } });
$ssh_fh->system({ ssh_opts => [ "-O", $ctl_cmd, $forward_opt ] });
$ssh_fh->system({ ssh_opts => [ "-O", $ctl_cmd, $forward_opt ] }) or return (1);
return (0);
}

Loading…
Cancel
Save