next part of ipv6-ization. mostly netcat.

This commit is contained in:
Denis Vlasenko
2007-01-12 20:59:31 +00:00
parent 2c91652bbc
commit 5d68724d5b
6 changed files with 94 additions and 76 deletions

View File

@@ -432,7 +432,7 @@ int wget_main(int argc, char **argv)
s = strrchr(buf, ',');
if (!s) goto pasv_error;
port += xatou_range(s+1, 0, 255) * 256;
set_port(lsa, htons(port));
set_nport(lsa, htons(port));
dfp = open_socket(lsa);
if (beg_range) {