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

Get rid of getCurrentIP #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Get rid of getCurrentIP #3

wants to merge 3 commits into from

Conversation

teythoon
Copy link

There are several problems with getCurrentIP:

  • the method used to determine the IP is fragile at best since it returns the
    address of the interface that is able to reach an route to the target host
  • so it cannot be used to get the ip of a specific interface
  • it breaks if there is no route to the target host
  • it does not belong into the frontend

There is a corresponding patch for the rest-service that adds the required
functionality to the backend. I'll push it into my provide_actual_ipaddr
branch on github.

Justus Winter added 3 commits September 19, 2011 13:57
There are several problems with getCurrentIP:
 - the method used to determine the IP is fragile at best since it returns the
   address of the interface that is able to reach an route to the target host
 - so it cannot be used to get the ip of a specific interface
 - it breaks if there is no route to the target host
 - it does not belong into the frontend

There is a corresponding patch for the rest-service that adds the required
functionality to the backend. I'll push it into my provide_actual_ipaddr
branch on github.
@ghost ghost assigned mvidner Oct 20, 2011
@mvidner mvidner removed their assignment Feb 19, 2016
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