From f186b776b838f34b52a332d55048e50871363ac6 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 12 May 2015 05:26:39 +0300 Subject: [PATCH] removed listen-ip --- bin/eth.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/eth.sh b/bin/eth.sh index e62c4d9..c839934 100755 --- a/bin/eth.sh +++ b/bin/eth.sh @@ -5,15 +5,14 @@ trap "exit" INT if [[ -f $(which ec2metadata 2>/dev/null) ]] then # If ec2 instance then get ips from ec2metadata - LOCALIP=$(ec2metadata --local-ipv4) + # LOCALIP=$(ec2metadata --local-ipv4) IP=$(ec2metadata --public-ipv4) else # Else get IPs from ifconfig and dig - LOCALIP=$(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | head -n1 | awk '{print $2}' | cut -d':' -f2) + # LOCALIP=$(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | head -n1 | awk '{print $2}' | cut -d':' -f2) IP=$(dig +short myip.opendns.com @resolver1.opendns.com) fi -echo "Local IP: $LOCALIP" echo "Public IP: $IP" if [[ -f $(which geth 2>/dev/null) ]] @@ -24,8 +23,8 @@ then elif [[ -f $(which eth 2>/dev/null) ]] then echo "Starting eth" - echo eth --bootstrap --peers 50 --remote 52.16.188.185:30303 --mining off --json-rpc -v 5 --public-ip $IP --listen-ip $LOCALIP - eth --bootstrap --peers 50 --remote 52.16.188.185:30303 --mining off --json-rpc -v 5 --public-ip $IP --listen-ip $LOCALIP + echo eth --bootstrap --peers 50 --remote 52.16.188.185:30303 --mining off --json-rpc -v 5 --public-ip $IP + eth --bootstrap --peers 50 --remote 52.16.188.185:30303 --mining off --json-rpc -v 5 --public-ip $IP else echo "Ethereum was not found!" exit 1;