commit 3bce78a88c109abb396aae494e6b25325a6de752
parent dd83e133539966e863547d92235afad59b3c1427
Author: clamiax <smoppy@gmail.com>
Date: Mon, 20 Aug 2018 18:56:15 +0100
[txthole] Remove -N flag from netcat.
This make it works also with netcat-openbsd.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/txthole b/src/txthole
@@ -35,7 +35,7 @@ main() {
while : ; do
paste="$(mktemp -q "$pastes/txthole.XXXXX.paste")"
chmod g+r "$paste" # the webserver needs to read
- cat "$fifo" |tee -a "$paste" | run "$paste" | nc -4Nl "$port" > "$fifo"
+ cat "$fifo" |tee -a "$paste" | run "$paste" | nc -4l "$port" > "$fifo"
[ "$(wc -c "$paste" |cut -d' ' -f1)" -eq 0 ] && rm -f "$paste"
done
rm -f "$fifo"