Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottle does not correctly render IPv6 addresses in startup prints #1432

Open
heliosfa opened this issue Oct 26, 2023 · 0 comments
Open

Bottle does not correctly render IPv6 addresses in startup prints #1432

heliosfa opened this issue Oct 26, 2023 · 0 comments

Comments

@heliosfa
Copy link

When Bottle v0.12.25 starts up, it does not correctly render IPv6 addresses in it's startup blurb.
It fails to enclose a raw IPv6 address in square brackets, making the listening address presented invalid.

Minimum reproducible example:

#!/usr/bin/python3
from bottle import route, run
run(host='::1')

Actual output:

Bottle v0.12.25 server starting up (using WSGIRefServer())...
Listening on http://::1:8080/
Hit Ctrl-C to quit.

Expected Output:

Bottle v0.12.25 server starting up (using WSGIRefServer())...
Listening on http://[::1]:8080/
Hit Ctrl-C to quit.

(note the square brackets around "::1").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant