Update get IP address method

This commit is contained in:
Teddysun 2014-04-29 15:26:22 +08:00
parent c99e188b92
commit 634b9d61ad

View File

@ -19,7 +19,7 @@ echo "#############################################################"
echo ""
# Get IP address
IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.*' | cut -d: -f2 | awk '{ print $1}'`;
IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.*' | cut -d: -f2 | awk '{ print $1}' | head -1`;
# Install Shadowsocks
function install_shadowsocks(){