Skip to content

Conversation

@I501307
Copy link

@I501307 I501307 commented Jan 27, 2026

Which issue(s) this PR fixes:
Fixes # (if there's an issue, or remove this line)

What this PR does / why we need it:
Fixes URI::InvalidURIError when binding to IPv6 addresses. The http_server
helper was generating invalid URIs like 'http://:::24231' instead of the
RFC 3986 compliant 'http://[::]:24231'.

Release Note:
http_server helper: Fix IPv6 bind address support

Fixes URI::InvalidURIError when binding to IPv6 addresses like '::' or '::1'.
The http_server helper was generating invalid URIs such as 'http://:::24231'
instead of the RFC 3986 compliant 'http://[::]:24231'.

Changes:
- Wrap IPv6 addresses in brackets when constructing URIs
- Add unit tests for IPv6 localhost (::1) and wildcard (::) binding
- Update CHANGELOG.md

This bug affected all Fluentd versions including v1.19.1 and caused
crashes when attempting to bind HTTP servers to IPv6 addresses in
dual-stack environments.

Resolves: Invalid URI generation for IPv6 bind addresses
Signed-off-by: Jesse Awan <jesse.awan@sap.com>
@I501307 I501307 force-pushed the fix/http-server-ipv6-uri-support branch from a279091 to eb72e2a Compare January 27, 2026 21:00
@I501307
Copy link
Author

I501307 commented Jan 27, 2026

Could a maintainer please add the bug label? This fixes a crash affecting all Fluentd versions when binding to IPv6 addresses.

- Updated server.rb to check if IPv6 addresses are already bracketed
- Added tests for pre-bracketed addresses ([::1] and [::])
- Improved ipv6_enabled? helper to verify both binding and resolution
- Updated CHANGELOG to document pre-bracketed address handling

Signed-off-by: Jesse Awan <jesse.awan@sap.com>
@I501307 I501307 requested a review from Watson1978 January 28, 2026 09:52
@I501307
Copy link
Author

I501307 commented Jan 28, 2026

@Watson1978 Same issue I encountered within a plugin as well here :
https://github.com/fluent/fluent-plugin-prometheus/pull/240/changes

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

Successfully merging this pull request may close these issues.

2 participants