eqemu_server.pl [skip ci] Make the internet connection check more multi-lingual friendly

This commit is contained in:
Akkadius 2016-10-14 14:37:25 -05:00 committed by GitHub
parent e86fca3aff
commit 8496bf16ff

View File

@ -488,11 +488,11 @@ sub check_internet_connection {
$count = "n"; $count = "n";
} }
if (`ping 8.8.8.8 -$count 1 -w 500`=~/Reply from|1 received/i) { if (`ping 8.8.8.8 -$count 1 -w 500`=~/TTL|1 received/i) {
# print "[Update] We have a connection to the internet, continuing...\n"; # print "[Update] We have a connection to the internet, continuing...\n";
return 1; return 1;
} }
elsif (`ping 4.2.2.2 -$count 1 -w 500`=~/Reply from|1 received/i) { elsif (`ping 4.2.2.2 -$count 1 -w 500`=~/TTL|1 received/i) {
# print "[Update] We have a connection to the internet, continuing...\n"; # print "[Update] We have a connection to the internet, continuing...\n";
return 1; return 1;
} }
@ -2154,4 +2154,4 @@ sub generate_random_password {
map $alphanumeric[rand @alphanumeric], 0..$passwordsize; map $alphanumeric[rand @alphanumeric], 0..$passwordsize;
return $randpassword; return $randpassword;
} }