Skip to content

Commit

Permalink
support ETIMEDOUT error
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl0r committed Dec 20, 2018
1 parent e8cc58f commit c21540e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sockssrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ static int connect_socks_target(unsigned char *buf, size_t n, struct client *cli
if(fd != -1) close(fd);
freeaddrinfo(remote);
switch(errno) {
case ETIMEDOUT:
return -EC_TTL_EXPIRED;
case EPROTOTYPE:
case EPROTONOSUPPORT:
case EAFNOSUPPORT:
Expand Down

0 comments on commit c21540e

Please sign in to comment.