Skip to content

Conversation

np-13
Copy link
Contributor

@np-13 np-13 commented Sep 18, 2025

Description

Previously, interface address lookup was performed only if both IPv4 and IPv6 addresses were not known, which is an impossible scenario when an interface is selected based on IP address.

For example, --iface 127.0.0.1 would result in lo interface selected with IPv4 known and set to 127.0.0.1, but it'd never have triggered IPv6 address lookup because of the wrong prerequisite of having to have both IPv4 and IPv6 set to nil.

This change ensures that the address lookup occurs independently for each IP protocol.

Todos

  • Tests
  • Documentation
  • Release note

Release Note

match: ensure IP addresses are looked up for each IP protocol when a corresponding value is not provided by `PublicIPv4` or `PublicIPv6` properties in dual-stack mode

Previously, interface address lookup was performed only if both IPv4 and IPv6 addresses were undetermined. This change ensures that the address lookup occurs independently for each IP protocol.
@rbrtbnfgl rbrtbnfgl self-requested a review September 19, 2025 15:54
@rbrtbnfgl rbrtbnfgl merged commit a0a7d68 into flannel-io:master Oct 1, 2025
8 checks passed
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