Author: Adam <git@apiote.xyz>
fix port switch in nc
server2.sh | 2 +-
diff --git a/server2.sh b/server2.sh index 8b8a9c2ac86018b3c3f516148dde112fe3162192..b6dd5af78ae2a31fb7c037cc6b00cd6d8c438e46 100755 --- a/server2.sh +++ b/server2.sh @@ -376,7 +376,7 @@ EOF # todo nc error should crash # shellcheck disable=SC2002 -while cat "$fifo1" | "$nc" -l "$port" | parse; do +while cat "$fifo1" | "$nc" -l -p "$port" | parse; do : done cleanup