Skip to content

Commit c21540e

Browse files
committed
support ETIMEDOUT error
1 parent e8cc58f commit c21540e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sockssrv.c

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ static int connect_socks_target(unsigned char *buf, size_t n, struct client *cli
140140
if(fd != -1) close(fd);
141141
freeaddrinfo(remote);
142142
switch(errno) {
143+
case ETIMEDOUT:
144+
return -EC_TTL_EXPIRED;
143145
case EPROTOTYPE:
144146
case EPROTONOSUPPORT:
145147
case EAFNOSUPPORT:

0 commit comments

Comments
 (0)