Failed to start the Let's Encrypt handler on port 80 too many colons in address on IPv6 only host #13291

Open
opened 2025-11-02 10:37:36 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Monschichi on GitHub (Jul 15, 2024).

Description

When enabling ACME on an IPv6 only host the acme responder won't start, as IPv6 address misses [].

When adding [] to IPv6 address in config, the webserver won't start: ...s/graceful/server.go:109:ListenAndServeTLSConfig() [E] Unable to get Listener: address [[2a01:4f8:c012:20ef::3]]:443: missing port in address

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/Monschichi/80dc6b6b213b615f588131afbd05c86c

Screenshots

No response

Git Version

No response

Operating System

Debian GNU/Linux 12 (bookworm)

How are you running Gitea?

using prebuild binary (https://dl.gitea.com/gitea/1.22.1/gitea-1.22.1-linux-arm64) started from command line

Database

SQLite

Originally created by @Monschichi on GitHub (Jul 15, 2024). ### Description When enabling ACME on an IPv6 only host the acme responder won't start, as IPv6 address misses []. When adding [] to IPv6 address in config, the webserver won't start: `...s/graceful/server.go:109:ListenAndServeTLSConfig() [E] Unable to get Listener: address [[2a01:4f8:c012:20ef::3]]:443: missing port in address` ### Gitea Version 1.22.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/Monschichi/80dc6b6b213b615f588131afbd05c86c ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Debian GNU/Linux 12 (bookworm) ### How are you running Gitea? using prebuild binary (https://dl.gitea.com/gitea/1.22.1/gitea-1.22.1-linux-arm64) started from command line ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:37:36 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13291