Skip to content

Commit

Permalink
qvm-connect-tcp: print usage on invalid parameters
Browse files Browse the repository at this point in the history
(cherry picked from commit 65d1045)
  • Loading branch information
meithecatte authored and marmarek committed Mar 12, 2023
1 parent 0b5f52c commit 618db8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions network/qvm-connect-tcp
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ if check_port "$PORT" && check_port "$LOCALPORT"; then
sudo socat TCP-LISTEN:"$LOCALPORT",reuseaddr,fork EXEC:"qrexec-client-vm \'$DOMAIN\' qubes.ConnectTCP+$PORT" &
else
echo "Invalid port provided"
print_usage
exit 1
fi

0 comments on commit 618db8a

Please sign in to comment.