From 634b9d61adbabe2864127d19399da824fab72dbc Mon Sep 17 00:00:00 2001 From: Teddysun Date: Tue, 29 Apr 2014 15:26:22 +0800 Subject: [PATCH] Update get IP address method --- shadowsocks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(){