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

Fixed local ip lookup on macOS GitHub instances. #59

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

nmoinvaz
Copy link
Owner

myIpAddress() and myIpAddressEx should be enumerating the network interfaces and returning the local addresses with getifaddrs/GetAdapterAddresses.

Where as, dnsResolve() and dnsResolveEx() enumerates resolved host names using getaddrinfo.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Attention: 48 lines in your changes are missing coverage. Please review.

Comparison is base (75e368c) 57.18% compared to head (af06618) 57.21%.

Files Patch % Lines
net_util.c 70.12% 10 Missing and 13 partials ⚠️
test/test_net_util.cc 47.72% 0 Missing and 23 partials ⚠️
execute_jscore.c 77.77% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   57.18%   57.21%   +0.03%     
==========================================
  Files          53       53              
  Lines        4639     4668      +29     
  Branches     1071     1076       +5     
==========================================
+ Hits         2653     2671      +18     
- Misses       1299     1306       +7     
- Partials      687      691       +4     
Flag Coverage Δ
macos 51.72% <56.34%> (-0.29%) ⬇️
ubuntu 53.74% <58.01%> (+0.03%) ⬆️
ubuntu_curl 53.44% <58.01%> (+0.03%) ⬆️
windows 56.78% <57.40%> (-0.13%) ⬇️

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

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

@nmoinvaz nmoinvaz marked this pull request as draft December 12, 2023 20:40
@nmoinvaz nmoinvaz force-pushed the nathan/dev/macos-myip branch 6 times, most recently from f625b46 to 29cc7f0 Compare December 12, 2023 21:07
myIpAddress() and myIpAddressEx() should be enumerating the network interfaces
and returning the local addresses with getifaddrs/GetAdapterAddresses.

Where as, dnsResolve() and dnsResolveEx() enumerates resolved host
names using getaddrinfo.
@nmoinvaz nmoinvaz added the bug Something isn't working label Dec 12, 2023
@nmoinvaz nmoinvaz marked this pull request as ready for review December 12, 2023 21:30
@nmoinvaz nmoinvaz enabled auto-merge (rebase) December 12, 2023 21:30
test/test_net_util.cc Outdated Show resolved Hide resolved
test/test_net_util.cc Outdated Show resolved Hide resolved
@nmoinvaz nmoinvaz merged commit fcf393d into master Dec 12, 2023
18 checks passed
@nmoinvaz nmoinvaz deleted the nathan/dev/macos-myip branch December 12, 2023 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants