diff --git a/changes/bug2408 b/changes/bug2408 new file mode 100644 index 0000000000..1d2dbf1ad6 --- /dev/null +++ b/changes/bug2408 @@ -0,0 +1,6 @@ + o Major bugfixes + - Ignore and warn about "PublishServerDescriptor hidserv" torrc + options. The 'hidserv' argument never controlled publication + of hidden service descriptors. Bugfix on 0.2.0.1-alpha. + + diff --git a/doc/tor.1.txt b/doc/tor.1.txt index 21298057c0..fa21f466d0 100644 --- a/doc/tor.1.txt +++ b/doc/tor.1.txt @@ -909,9 +909,9 @@ is non-zero): If set to a path, only the specified path will be executed. (Default: tor-fw-helper) -**PublishServerDescriptor** **0**|**1**|**v1**|**v2**|**v3**|**bridge**|**hidserv**,**...**:: +**PublishServerDescriptor** **0**|**1**|**v1**|**v2**|**v3**|**bridge**,**...**:: This option specifies which descriptors Tor will publish when acting as - a relay or hidden service. You can + a relay. You can choose multiple arguments, separated by commas. + If this option is set to 0, Tor will not publish its @@ -919,7 +919,7 @@ is non-zero): out your server, or if you're using a Tor controller that handles directory publishing for you.) Otherwise, Tor will publish its descriptors of all type(s) specified. The default is "1", - which means "if running as a server or a hidden service, publish the + which means "if running as a server, publish the appropriate descriptors to the authorities". **ShutdownWaitLength** __NUM__:: diff --git a/src/or/config.c b/src/or/config.c index aadcbec319..3f102245fa 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2889,7 +2889,9 @@ compute_publishserverdescriptor(or_options_t *options) else if (!strcasecmp(string, "bridge")) *auth |= BRIDGE_AUTHORITY; else if (!strcasecmp(string, "hidserv")) - *auth |= HIDSERV_AUTHORITY; + log_warn(LD_CONFIG, + "PublishServerDescriptor hidserv is invalid. See " + "PublishHidServDescriptors."); else if (!strcasecmp(string, "") || !strcmp(string, "0")) /* no authority */; else