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
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
sergi
Tor
Commits
39146383
Commit
39146383
authored
4 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Rename get_primary_dir_port()
Also, remove get_primary_or_port() -- nothing used it.
parent
f57c31e4
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
src/app/config/config.h
+2
-4
2 additions, 4 deletions
src/app/config/config.h
src/feature/relay/router.c
+1
-1
1 addition, 1 deletion
src/feature/relay/router.c
with
3 additions
and
5 deletions
src/app/config/config.h
+
2
−
4
View file @
39146383
...
...
@@ -160,10 +160,8 @@ MOCK_DECL(const smartlist_t *,get_configured_ports,(void));
int
port_binds_ipv4
(
const
port_cfg_t
*
port
);
int
port_binds_ipv6
(
const
port_cfg_t
*
port
);
int
portconf_get_first_advertised_port
(
int
listener_type
,
int
address_family
);
#define get_primary_or_port() \
(portconf_get_first_advertised_port(CONN_TYPE_OR_LISTENER, AF_INET))
#define get_primary_dir_port() \
int
address_family
);
#define portconf_get_primary_dir_port() \
(portconf_get_first_advertised_port(CONN_TYPE_DIR_LISTENER, AF_INET))
const
tor_addr_t
*
portconf_get_first_advertised_addr
(
int
listener_type
,
int
address_family
);
...
...
This diff is collapsed.
Click to expand it.
src/feature/relay/router.c
+
1
−
1
View file @
39146383
...
...
@@ -1572,7 +1572,7 @@ router_can_extend_over_ipv6,(const or_options_t *options))
uint16_t
router_get_advertised_dir_port
(
const
or_options_t
*
options
,
uint16_t
dirport
)
{
int
dirport_configured
=
get_primary_dir_port
();
int
dirport_configured
=
portconf_
get_primary_dir_port
();
(
void
)
options
;
if
(
!
dirport_configured
)
...
...
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