Opened 7 years ago

Closed 7 years ago

#10470 closed defect (fixed)

Cannot DirPort more than once (despite man page's claim)

Reported by: cypherpunks Owned by:
Priority: Medium Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version: Tor:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


       DirPort [address:]PORT|auto [flags]
           If this option is nonzero, advertise the directory service on this port. Set it to "auto" to have Tor pick a port for you. This option **can** occur more
           than once. (Default: 0)

               The same flags are supported here as are supported by ORPort.
 [ARM_NOTICE] Tor control port closed
 [ARM_WARN] Unable to load torrc (unable to query the torrc location)
 [ERR] Reading config failed--see warnings above. For usage, try -h.
 [WARN] Failed to parse/validate config: Misconfigured server ports
 [WARN] Can't advertise more than one DirPort.
DirPort 1111
DirPort 2222 # Causes failure
Tor version (git-4f3b3874bcecd02a).

The man page claims it is OK to have multiple DirPort instances, much like ORPort but for DirPort, this is incorrect. Sadly, the reload lead to my relay abruptly cutting out and needing a full start up again (wasn't just a warning).

Child Tickets

Change History (3)

comment:1 Changed 7 years ago by cypherpunks

Component: - Select a componentTor
Milestone: Tor: 0.2.4.x-final
Version: Tor:

comment:2 Changed 7 years ago by arma

You can specify two, but all but one need to have the 'noadvertise' flag. Otherwise your Tor thinks you're trying to advertise two DirPorts, which is currently not supported (but might be in the future).

Sounds like the fix is to explain better in the man page, for now.

comment:3 Changed 7 years ago by nickm

Resolution: fixed
Status: newclosed

I agree; man page patched in 35115496511f64c08849a039c926910739467169

Note: See TracTickets for help on using tickets.