summaryrefslogtreecommitdiff
path: root/src/nat/gnunet-nat-client-script.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-27 20:22:33 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-27 20:22:33 +0000
commit436f9a3345ae1f9276593ad34d8606a5de8fceeb (patch)
tree8a1173c23815cf211c0c1ae91d35dc784043682c /src/nat/gnunet-nat-client-script.sh
parent836d9e75481db1162d1c93c891f0be2d8f2766f4 (diff)
moving NAT client/server to NAT library
Diffstat (limited to 'src/nat/gnunet-nat-client-script.sh')
-rwxr-xr-xsrc/nat/gnunet-nat-client-script.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nat/gnunet-nat-client-script.sh b/src/nat/gnunet-nat-client-script.sh
new file mode 100755
index 000000000..4e4ccafad
--- /dev/null
+++ b/src/nat/gnunet-nat-client-script.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+IP=`ifconfig | grep inet | head -n1 | awk '{print $2}' | sed -e "s/addr://"`
+echo "Using IP $IP, trying to connect to $1"
+./gnunet-nat-client-udp $IP $1