commit 805d64dd36710d59a5db4c69cfe87088327e3a1d
parent 3bce78a88c109abb396aae494e6b25325a6de752
Author: Claudio Alessi <smoppy@gmail.com>
Date: Mon, 20 Aug 2018 21:18:34 +0200
Undo previous commit.
Yes, I have a good reason.
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 -4l "$port" > "$fifo"
+ cat "$fifo" |tee -a "$paste" | run "$paste" | nc -4Nl "$port" > "$fifo"
[ "$(wc -c "$paste" |cut -d' ' -f1)" -eq 0 ] && rm -f "$paste"
done
rm -f "$fifo"