Skip to content

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