diff --git a/shadowsocks.sh b/shadowsocks.sh index 349b7d5..153d8bb 100644 --- a/shadowsocks.sh +++ b/shadowsocks.sh @@ -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(){