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
c0a6c346
Commit
c0a6c346
authored
9 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'teor/bug18208'
parents
162d2022
92b1c3b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug18208
+5
-0
5 additions, 0 deletions
changes/bug18208
src/or/main.c
+10
-2
10 additions, 2 deletions
src/or/main.c
with
15 additions
and
2 deletions
changes/bug18208
0 → 100644
+
5
−
0
View file @
c0a6c346
o Minor bug fixes (exit policies, security):
- Refresh an exit relay's exit policy when interface addresses change.
Previously, tor only refreshed the exit policy when the configured
external address changed.
Closes ticket 18208 on tor 0.2.7.3. Patch by "teor".
This diff is collapsed.
Click to expand it.
src/or/main.c
+
10
−
2
View file @
c0a6c346
...
...
@@ -2169,7 +2169,10 @@ got_libevent_error(void)
void
ip_address_changed
(
int
at_interface
)
{
int
server
=
server_mode
(
get_options
());
const
or_options_t
*
options
=
get_options
();
int
server
=
server_mode
(
options
);
int
exit_reject_private
=
(
server
&&
options
->
ExitRelay
&&
options
->
ExitPolicyRejectPrivate
);
if
(
at_interface
)
{
if
(
!
server
)
{
...
...
@@ -2183,10 +2186,15 @@ ip_address_changed(int at_interface)
reset_bandwidth_test
();
stats_n_seconds_working
=
0
;
router_reset_reachability
();
mark_my_descriptor_dirty
(
"IP address changed"
);
}
}
/* Exit relays incorporate interface addresses in their exit policies when
* ExitPolicyRejectPrivate is set */
if
(
exit_reject_private
||
(
server
&&
!
at_interface
))
{
mark_my_descriptor_dirty
(
"IP address changed"
);
}
dns_servers_relaunch_checks
();
}
...
...
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