[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3563: _tub_portlocation tries to detect port 0 configuration but does so incompletely

Tahoe-LAFS trac at tahoe-lafs.org
Tue Dec 15 18:28:59 UTC 2020


#3563: _tub_portlocation tries to detect port 0 configuration but does so
incompletely
---------------------+---------------------------
 Reporter:  exarkun  |          Owner:
     Type:  defect   |         Status:  new
 Priority:  normal   |      Milestone:  undecided
Component:  unknown  |        Version:  n/a
 Keywords:           |  Launchpad Bug:
---------------------+---------------------------
 For some reason configuring the main tub to listen on port 0 is not
 allowed:

 {{{
     for port in tubport.split(","):
         if port in ("0", "tcp:0"):
             raise PortAssignmentRequired()
 }}}

 However this doesn't catch all possible port zero configuration strings.
 For example, "tcp:port=0" and "tcp:0:interface=127.0.0.1" will both also
 listen on port 0 and not get caught by this check.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3563>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list