Skip to content

Commit

Permalink
eqemu_server.pl [skip ci] Make the internet connection check more mul…
Browse files Browse the repository at this point in the history
…ti-lingual friendly
  • Loading branch information
Akkadius committed Oct 14, 2016
1 parent e86fca3 commit 8496bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/scripts/eqemu_server.pl
Expand Up @@ -488,11 +488,11 @@ sub check_internet_connection {
$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";
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";
return 1;
}
Expand Down Expand Up @@ -2154,4 +2154,4 @@ sub generate_random_password {
map $alphanumeric[rand @alphanumeric], 0..$passwordsize;

return $randpassword;
}
}

0 comments on commit 8496bf1

Please sign in to comment.