Commits

Jon Langevin committed 50245a7

Fixed command to determine available IPs, for better accuracy

Comments (0)

Files changed (1)

 
 echo "\nYou typed: $VHOST \n"
 
-IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | grep -v '192.*' | grep -v '10.*' | cut -d: -f2 | awk '{ print $1}'`;
+IP=`ifconfig | grep 'inet addr:'| grep -v ':127.*' | grep -v ':192.*' | grep -v ':10.*' | cut -d: -f2 | awk '{ print $1}'`;
 
 echo -e "Specify the vhost IP from the list of available Public IPs:\n$IP"
 read VHOSTIP