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

Allow zbeacon to resolve ip address to interface or interface name to interface #2062

Merged
merged 1 commit into from
Mar 3, 2020
Merged

Allow zbeacon to resolve ip address to interface or interface name to interface #2062

merged 1 commit into from
Mar 3, 2020

Conversation

Dysl3xik
Copy link
Contributor

@Dysl3xik Dysl3xik commented Mar 2, 2020

Problem: To set the interface used in zyre you must call zyre_set_interface, which ultimately calls zsys_set_interface(). The argument for this call is an interface NAME to use for resolution.

On windows machines trying to determine an interface name is nearly a nightmare as its typically something like "Local Network Interface (1)" or something else long winded. Additionally this can change over time, and its hard for end users to deduce in the first place.

Solution: Allow the argument for zsys_set_interface to be an IP address OR interface name. This allows the end user to use something they can be more certain about (ip address) that is additionally guaranteed to not be randomly changed by the OS.

Ultimately you may wish to also update the docs for the other external functions to explain that IP address strings can be used.

@bluca bluca merged commit 7c76f83 into zeromq:master Mar 3, 2020
@Dysl3xik Dysl3xik deleted the Improve_ZBeacon_Interface_Resolution branch March 3, 2020 19:12
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