Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/ftpfs-port/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



Not sure if this is the correct fix. ftpfs to a tiny embedded
ftp server which doesn't support PASV (rare these days) provokes
the use of PORT. PORT replies with the IP address of 0.0.0.0
This is due to the contents of /net/tcp/n/local (after announce())
being ::!29274 (missing IP address).

Maybe this is history? Perhaps announce used to give the local address
before connection and now either doesn't or only does after the
connection is successfull; the port is correct though.

My fix is to use myipaddr() to fetch the IP address, which works.

-Steve

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].