mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
and then make the indentation right
svn:r16663
This commit is contained in:
parent
845d2c26b4
commit
5d73e37519
@ -141,28 +141,28 @@ parse_socks4a_resolve_response(const char *response, size_t len,
|
||||
static const char *
|
||||
socks5_reason_to_string(char reason)
|
||||
{
|
||||
switch(reason) {
|
||||
case SOCKS5_SUCCEEDED:
|
||||
return "succeeded";
|
||||
case SOCKS5_GENERAL_ERROR:
|
||||
return "general error";
|
||||
case SOCKS5_NOT_ALLOWED:
|
||||
return "not allowed";
|
||||
case SOCKS5_NET_UNREACHABLE:
|
||||
return "network is unreachable";
|
||||
case SOCKS5_HOST_UNREACHABLE:
|
||||
return "host is unreachable";
|
||||
case SOCKS5_CONNECTION_REFUSED:
|
||||
return "connection refused";
|
||||
case SOCKS5_TTL_EXPIRED:
|
||||
return "ttl expired";
|
||||
case SOCKS5_COMMAND_NOT_SUPPORTED:
|
||||
return "command not supported";
|
||||
case SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED:
|
||||
return "address type not supported";
|
||||
default:
|
||||
return "unknown SOCKS5 code";
|
||||
}
|
||||
switch(reason) {
|
||||
case SOCKS5_SUCCEEDED:
|
||||
return "succeeded";
|
||||
case SOCKS5_GENERAL_ERROR:
|
||||
return "general error";
|
||||
case SOCKS5_NOT_ALLOWED:
|
||||
return "not allowed";
|
||||
case SOCKS5_NET_UNREACHABLE:
|
||||
return "network is unreachable";
|
||||
case SOCKS5_HOST_UNREACHABLE:
|
||||
return "host is unreachable";
|
||||
case SOCKS5_CONNECTION_REFUSED:
|
||||
return "connection refused";
|
||||
case SOCKS5_TTL_EXPIRED:
|
||||
return "ttl expired";
|
||||
case SOCKS5_COMMAND_NOT_SUPPORTED:
|
||||
return "command not supported";
|
||||
case SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED:
|
||||
return "address type not supported";
|
||||
default:
|
||||
return "unknown SOCKS5 code";
|
||||
}
|
||||
}
|
||||
|
||||
/** Send a resolve request for <b>hostname</b> to the Tor listening on
|
||||
|
Loading…
Reference in New Issue
Block a user