mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-24 22:16:11 +03:00
Merge PR #32: client: warn when handshake fails due to BADIP
Shortened the message, the timeout only applies when tunnel is up.
This commit is contained in:
commit
67643ee996
@ -1439,6 +1439,9 @@ handshake_login(int dns_fd, int seed)
|
|||||||
if (strncmp("LNAK", in, 4) == 0) {
|
if (strncmp("LNAK", in, 4) == 0) {
|
||||||
fprintf(stderr, "Bad password\n");
|
fprintf(stderr, "Bad password\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
} else if (strncmp("BADIP", in, 5) == 0) {
|
||||||
|
warnx("BADIP: Server rejected sender IP address (maybe iodined -c will help)");
|
||||||
|
return 1;
|
||||||
} else if (sscanf(in, "%64[^-]-%64[^-]-%d-%d",
|
} else if (sscanf(in, "%64[^-]-%64[^-]-%d-%d",
|
||||||
server, client, &mtu, &netmask) == 4) {
|
server, client, &mtu, &netmask) == 4) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user