1
0
Fork 0
mirror of https://github.com/yarrick/iodine.git synced 2025-04-04 05:43:33 +03:00

Iodine: IPv6

This commit is contained in:
Julian Kranz 2012-01-28 15:05:42 +01:00 committed by Barak A. Pearlmutter
parent 8254d3f4b5
commit 57e7ea905f

View file

@ -1719,6 +1719,7 @@ handshake_raw_udp(int dns_fd, int seed)
int i;
for (i = 0; i < sizeof(struct in6_addr); ++i)
server6.__in6_u.__u6_addr8[i] = in[i + 1];
remoteaddr = 1;
break;
}
#endif
@ -1731,10 +1732,7 @@ handshake_raw_udp(int dns_fd, int seed)
if (!running)
return 0;
/**
* Todo: Fix ipv6
*/
if (!remoteaddr && !_v6_connect) {
if (!remoteaddr) {
fprintf(stderr, "Failed to get raw server IP, will use DNS mode.\n");
return 0;
}