mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-03 00:53:32 +01:00
Merge remote-tracking branch 'public/bug9366' into maint-0.2.4
This commit is contained in:
commit
1ee1c8fb4f
4
changes/bug9366
Normal file
4
changes/bug9366
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor features (usability):
|
||||||
|
- Warn and fail if a server is configured not to advertise any
|
||||||
|
ORPorts at all. (We need *something* to put in our descriptor, or
|
||||||
|
we just won't work.)
|
@ -5519,6 +5519,13 @@ check_server_ports(const smartlist_t *ports,
|
|||||||
"listening on one.");
|
"listening on one.");
|
||||||
r = -1;
|
r = -1;
|
||||||
}
|
}
|
||||||
|
if (n_orport_listeners && !n_orport_advertised) {
|
||||||
|
log_warn(LD_CONFIG, "We are listening on an ORPort, but not advertising "
|
||||||
|
"any ORPorts. This will keep us from building a %s "
|
||||||
|
"descriptor, and make us impossible to use.",
|
||||||
|
options->BridgeRelay ? "bridge" : "router");
|
||||||
|
r = -1;
|
||||||
|
}
|
||||||
if (n_dirport_advertised && !n_dirport_listeners) {
|
if (n_dirport_advertised && !n_dirport_listeners) {
|
||||||
log_warn(LD_CONFIG, "We are advertising a DirPort, but not actually "
|
log_warn(LD_CONFIG, "We are advertising a DirPort, but not actually "
|
||||||
"listening on one.");
|
"listening on one.");
|
||||||
|
Loading…
Reference in New Issue
Block a user