Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #8607] Exclude loopback addresses when iterating over local network interfaces #8608

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

chi3316
Copy link
Contributor

@chi3316 chi3316 commented Aug 29, 2024

Which Issue(s) This PR Fixes

Fixes #8607

Brief Description

This PR addresses an issue in the NetworkUtil class where the loopback address (127.0.0.1) might be mistakenly selected when all available IP addresses are internal. The fix involves ensuring that loopback addresses are excluded when traversing localInetAddressList.

How Did You Test This Change?

The test workflow

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.19%. Comparing base (18c30cb) to head (39bed4d).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8608      +/-   ##
=============================================
- Coverage      47.23%   47.19%   -0.04%     
+ Complexity     11462    11452      -10     
=============================================
  Files           1277     1277              
  Lines          89342    89344       +2     
  Branches       11480    11481       +1     
=============================================
- Hits           42202    42169      -33     
- Misses         41942    41972      +30     
- Partials        5198     5203       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RongtongJin
Copy link
Contributor

LGTM

@RongtongJin RongtongJin merged commit b9d9b3f into apache:develop Aug 30, 2024
10 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.

[Bug] Incorrect broker address assigned as 127.0.0.1 in K8s deployment
3 participants