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

Support inference of the local IP address for Endpoint #1

Open
sfackler opened this issue Jun 23, 2017 · 0 comments
Open

Support inference of the local IP address for Endpoint #1

sfackler opened this issue Jun 23, 2017 · 0 comments

Comments

@sfackler
Copy link
Member

sfackler commented Jun 23, 2017

This is a kind of sketchy operation, but it's not all that common to know what your IP is via other means. We basically enumerate all local addresses and look for the first one that "looks right". This can be done with getifaddrs(3) on Unix and GetAdaptersAddresses on Windows.

Brave's logic for reference: https://github.com/openzipkin/brave/blob/c83d32531170de2d9e848026e43d5e2020922ee0/brave/src/main/java/brave/internal/Platform.java#L56

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

No branches or pull requests

1 participant