summaryrefslogtreecommitdiff
path: root/nocompile
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile')
-rwxr-xr-xnocompile/libexec/telnet-gateway.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/nocompile/libexec/telnet-gateway.sh b/nocompile/libexec/telnet-gateway.sh
index ca2b90d..aac9dd6 100755
--- a/nocompile/libexec/telnet-gateway.sh
+++ b/nocompile/libexec/telnet-gateway.sh
@@ -14,4 +14,8 @@ for i in `seq 5 1`;do
printf "\r%d..." $i
sleep 1
done
-nc $(printf "%s" "$serverURL" | cuturl | grep ^domain | cut '-d ' -f2) 23
+port=$(printf "%s" "$serverURL" | cuturl | grep ^port | cut '-d ' -f2)
+exec ncat -i 600 $(printf "%s" "$serverURL" \
+ | cuturl \
+ | grep ^domain \
+ | cut '-d ' -f2 ) $port