Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
5d73e375
Commit
5d73e375
authored
16 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
and then make the indentation right
svn:r16663
parent
845d2c26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tools/tor-resolve.c
+22
-22
22 additions, 22 deletions
src/tools/tor-resolve.c
with
22 additions
and
22 deletions
src/tools/tor-resolve.c
+
22
−
22
View file @
5d73e375
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment