version 1.22, 2015/12/10 16:49:28 |
version 1.23, 2015/12/10 18:31:52 |
|
|
if (cnt != 4) |
if (cnt != 4) |
err(1, "read failed (%zu/4)", cnt); |
err(1, "read failed (%zu/4)", cnt); |
if (buf[1] != 0) { |
if (buf[1] != 0) { |
errx(1, "connection failed, SOCKS error: %s", |
errx(1, "connection failed, SOCKSv5 error: %s", |
socks5_strerror(buf[1])); |
socks5_strerror(buf[1])); |
} |
} |
switch (buf[3]) { |
switch (buf[3]) { |
|
|
if (cnt != 8) |
if (cnt != 8) |
err(1, "read failed (%zu/8)", cnt); |
err(1, "read failed (%zu/8)", cnt); |
if (buf[1] != 90) { |
if (buf[1] != 90) { |
errx(1, "connection failed, SOCKS error: %s", |
errx(1, "connection failed, SOCKSv4 error: %s", |
socks4_strerror(buf[1])); |
socks4_strerror(buf[1])); |
} |
} |
} else if (socksv == -1) { |
} else if (socksv == -1) { |