Skip to content

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

@Monschichi

Description

@Monschichi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions