From 734aaecb5f1fb07869873801080609c24b459b56 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 30 Oct 2015 11:38:45 +1300 Subject: Fix UDP communication for hex tool --- tools/hex.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hex.sh b/tools/hex.sh index 6d49fafdf..cfae14bb6 100755 --- a/tools/hex.sh +++ b/tools/hex.sh @@ -15,7 +15,7 @@ then fi send_hex_udp () { - echo $2 | xxd -r -p | nc -u localhost $1 + echo $2 | xxd -r -p | nc -u -w 0 localhost $1 } send_hex_tcp () { @@ -23,7 +23,7 @@ send_hex_tcp () { } send_text_udp () { - echo -n -e $2 | nc -u localhost $1 + echo -n -e $2 | nc -u -w 0 localhost $1 } send_text_tcp () { -- cgit v1.2.3