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

main
Tsu-ba-me 1 year ago committed by digimer
parent 711cb5b696
commit d29dac4fa9
  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 } }); $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); return (0);
} }

Loading…
Cancel
Save