Skip to content

Conversation

@I501307
Copy link

@I501307 I501307 commented Jan 28, 2026

Fixes two IPv6-related bugs when using bind='::':

  1. Log message construction: Previously created invalid URL 'http://:::24231' instead of 'http://[::]:24231'

  2. Worker aggregation: When bind is '::', the code tried to connect to '::' directly instead of converting it to '::1' (IPv6 localhost), causing connection failures

Changes:

  • Add bracket notation for IPv6 addresses in log messages
  • Convert '::' to '::1' for inter-worker communication
  • Maintain backward compatibility with IPv4 addresses

Fixes #229

Fixes two IPv6-related bugs when using bind='::':

1. Log message construction: Previously created invalid URL
   'http://:::24231' instead of 'http://[::]:24231'

2. Worker aggregation: When bind is '::', the code tried to
   connect to '::' directly instead of converting it to '::1'
   (IPv6 localhost), causing connection failures

Changes:
- Add bracket notation for IPv6 addresses in log messages
- Convert '::' to '::1' for inter-worker communication
- Maintain backward compatibility with IPv4 addresses

Fixes fluent#229

Signed-off-by: Jesse Awan <jesse.awan@sap.com>
@I501307 I501307 force-pushed the fix/ipv6-bind-support branch from 82ad754 to be6af88 Compare January 28, 2026 10:13
@I501307
Copy link
Author

I501307 commented Jan 29, 2026

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

@I501307
Copy link
Author

I501307 commented Feb 9, 2026

@Watson1978 @kenhys isn't this more or less the same problem : fluent/fluentd#5239

@Watson1978
Copy link
Contributor

Can you add the tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants