Update get IP address method
This commit is contained in:
parent
c99e188b92
commit
634b9d61ad
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user