1
0
mirror of https://github.com/prirun/p50em.git synced 2026-03-29 02:44:55 +00:00

em: don't use localhost if license server DNS fails; update copyright

This commit is contained in:
Jim
2012-07-02 17:15:42 -04:00
parent e42d7cee37
commit 75a4b59312

6
em.c
View File

@@ -784,9 +784,7 @@ int readlicense(int first) {
newlicense.rserver = gethostbyname(newlicense.server);
if (newlicense.rserver == NULL) {
printf("em: can't lookup IP address for license server %s. Check license file or DNS.\n", newlicense.server);
newlicense.rserver = gethostbyname("localhost");
if (newlicense.rserver == NULL)
return 0;
return 0;
}
bcopy((char *)newlicense.rserver->h_addr, (char *)&raddr.sin_addr.s_addr, newlicense.rserver->h_length);
license = newlicense;
@@ -4423,7 +4421,7 @@ main (int argc, char **argv) {
struct timezone tz;
printf("[Prime Emulator ver %s %s]\n", REV, __DATE__);
printf("[Copyright (C) 2005-2011 Prirun LLC]\n");
printf("[Copyright (C) 2005-2012 Prirun LLC prirun@gmail.com]\n");
if (argc > 1 && (strcmp(argv[1],"--version") == 0)) {
exit(0);
}