summaryrefslogtreecommitdiff
path: root/src/nat/gnunet-nat-server-script.sh
blob: 42a8e639a6fcf209a8103f2a9f81e42ec063a439 (plain)
1
2
3
4
#!/bin/sh
IP=`ifconfig | grep inet | head -n1 | awk '{print $2}' | sed -e "s/addr://"`
echo "Using IP $IP"
./gnunet-nat-server $IP | sed -u -e "s/.*/.\/gnunet-nat-server-udp $IP &\&/" | sh