Merge pull request #4 from TSalwach/master

poprawka wyjscia przy braku DNS
pull/1/head
sp9skp 2018-03-27 18:08:10 +02:00 zatwierdzone przez GitHub
commit 7f1f810ddb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -3715,10 +3715,12 @@ extern int main(int argc, char **argv)
if(disSKP==0){
if(h2ip("skp.wodzislaw.pl",ip)){
printf("\r\nCan't resolve DNS address\r\n");
return 0;
printf("\r\nCan't resolve DNS address using 194.140.233.120\r\n");
sprintf(dbAddr,"http://194.140.233.120:81/sondy.php");
//return 0;
}else{
sprintf(dbAddr,"http://%s:81/sondy.php",ip);
}
sprintf(dbAddr,"http://%s:81/sondy.php",ip);
}
for(i=0;i<30;i++)
dBs[i].name[0]=0;