apertium / apertium-apy

📦 Apertium HTTP Server in Python
https://wiki.apertium.org/wiki/Apertium-apy
GNU General Public License v3.0
32 stars 42 forks source link

Clarify misleading 'Serving at' info message #173

Closed akosiaris closed 3 years ago

akosiaris commented 3 years ago

http_server.bind() that follows the logging statements specifies just the port, leaving address and family to their default values.

For the address argument, the default is None, meaning listening on all available interfaces.

For the family argument, the default is AF_UNSPEC, meaning both IPv4 and IPv6 will be used.

Clarify the comment to not mislead the user into believing the software only binds on localhost IPv4/IPv6 addresses, but rather all interfaces and families

While at it, drop the unused port argument of the setup_handler() function

unhammer commented 3 years ago

Thanks!