Files
nginx-proxy-manager/backend/internal
addielarue 9aa7fd5722 fix(stream): bracket IPv6 forward host for valid nginx upstream
A Stream Host with an IPv6 address as the Forward Host was accepted and
saved but never activated. The generated stream config rendered
`proxy_pass {{ forwarding_host }}:{{ forwarding_port }}` as e.g.
`fe80::528:3c87:e7bb:ab08:25`, which nginx rejects with
"invalid port in upstream" because an IPv6 literal must be wrapped in
square brackets before the port is appended (`[fe80::...]:25`).

Normalize the stream forward host in generateConfig (alongside the existing
per-host-type data massaging) using net.isIPv6(), so IPv6 hosts render as
`[address]:port` while IPv4 addresses and hostnames are emitted unchanged.
The mutation is applied to the deep-copied render object, so persisted and
audit data are unaffected.

Fixes #5740
2026-07-25 22:55:58 +10:00
..
2026-02-14 06:28:59 +00:00
2025-10-02 08:12:33 +10:00
2026-05-13 13:40:06 +10:00
2025-10-02 08:12:28 +10:00
2026-05-13 13:40:06 +10:00
2026-05-13 13:40:06 +10:00
2025-10-02 08:10:18 +10:00
2026-05-13 13:40:06 +10:00