version 1.19, 2011/02/12 15:54:18 |
version 1.20, 2012/03/08 09:56:28 |
|
|
case SOCKS_IPV4: |
case SOCKS_IPV4: |
cnt = atomicio(read, proxyfd, buf + 4, 6); |
cnt = atomicio(read, proxyfd, buf + 4, 6); |
if (cnt != 6) |
if (cnt != 6) |
err(1, "read failed (%d/6)", cnt); |
err(1, "read failed (%zu/6)", cnt); |
break; |
break; |
case SOCKS_IPV6: |
case SOCKS_IPV6: |
cnt = atomicio(read, proxyfd, buf + 4, 18); |
cnt = atomicio(read, proxyfd, buf + 4, 18); |
if (cnt != 18) |
if (cnt != 18) |
err(1, "read failed (%d/18)", cnt); |
err(1, "read failed (%zu/18)", cnt); |
break; |
break; |
default: |
default: |
errx(1, "connection failed, unsupported address type"); |
errx(1, "connection failed, unsupported address type"); |