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
ea893a3c
Commit
ea893a3c
authored
12 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug7493_redux'
parents
06d367ea
bfe8d829
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/connection.c
+7
-0
7 additions, 0 deletions
src/or/connection.c
with
7 additions
and
0 deletions
src/or/connection.c
+
7
−
0
View file @
ea893a3c
...
...
@@ -281,6 +281,13 @@ entry_connection_new(int type, int socket_family)
tor_assert
(
type
==
CONN_TYPE_AP
);
connection_init
(
time
(
NULL
),
ENTRY_TO_CONN
(
entry_conn
),
type
,
socket_family
);
entry_conn
->
socks_request
=
socks_request_new
();
/* If this is coming from a listener, we'll set it up based on the listener
* in a little while. Otherwise, we're doing this as a linked connection
* of some kind, and we should set it up here based on the socket family */
if
(
socket_family
==
AF_INET
)
entry_conn
->
ipv4_traffic_ok
=
1
;
else
if
(
socket_family
==
AF_INET6
)
entry_conn
->
ipv6_traffic_ok
=
1
;
return
entry_conn
;
}
...
...
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