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

Reduce unnecessary helper calls #207

Merged
merged 1 commit into from
Aug 26, 2022
Merged

Reduce unnecessary helper calls #207

merged 1 commit into from
Aug 26, 2022

Conversation

dddddai
Copy link
Member

@dddddai dddddai commented Aug 26, 2022

No description provided.

@dddddai dddddai requested review from a team as code owners August 26, 2022 03:09
@mergify
Copy link

mergify bot commented Aug 26, 2022

Welcome to the Merbridge OpenSource Community!👏

We're delighted to have you onboard 💘

@@ -141,7 +141,7 @@ func (s *server) buildListener(netns string) error {
var addrs []net.Addr
ifaces, _ := net.Interfaces()
for _, iface := range ifaces {
if iface.Name == "lo" {
if (iface.Flags&net.FlagLoopback) != 0 || (iface.Flags&net.FlagUp) == 0 {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aligned with #187

@codecov-commenter
Copy link

Codecov Report

Merging #207 (6a1ac10) into main (88235e4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #207   +/-   ##
=======================================
  Coverage   40.33%   40.33%           
=======================================
  Files           7        7           
  Lines         419      419           
=======================================
  Hits          169      169           
  Misses        236      236           
  Partials       14       14           
Flag Coverage Δ
unittests 40.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mergify mergify bot merged commit 9121295 into merbridge:main Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants