Skip to content

Conversation

@damyan
Copy link
Contributor

@damyan damyan commented May 14, 2025

Although fluent-bit supports IPv6, HTTP listening on an IPv6 address fails due to the address validation currently supporting IPv4 only. Improve the RegEx to support both IPv4 and IPv6 good enough™

Notes:

  • the IPv6 RegEx part matches also the unspecified address ::
  • the IPv4 RegEx part was improved to match the dot delimiter . literally (it previously matched every character, due to missing escaping)

Fixes #1615

Although `fluent-bit` supports IPv6, HTTP listening on an IPv6 address
fails due to the address validation currently supporting IPv4 only.
Improve the RegEx to support both IPv4 and IPv6 good enough™

Notes:
- the IPv6 RegEx part matches also the unspecified address `::`
- the IPv4 RegEx part was improved to match the dot delimiter `.`
  literally (it previously matched every character, due to missing
escaping)

Signed-off-by: Damyan Yordanov <[email protected]>
@cw-Guo cw-Guo merged commit e8f31a0 into fluent:master May 15, 2025
10 of 11 checks passed
@cw-Guo
Copy link
Collaborator

cw-Guo commented May 15, 2025

@damyan Thanks for your contributions.

@damyan damyan deleted the fix/ip-validation branch May 15, 2025 07:11
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.

Support IPv6 addresses in http_listen configuration

2 participants