Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

ISSUE-2239: In some cases, Bookie obtained the local IP of 127.0.0.1, which caused an abnormal report status. #85

Open
sijie opened this issue Jan 15, 2020 · 0 comments

Comments

@sijie
Copy link
Member

sijie commented Jan 15, 2020

Original Issue: apache#2239


In some cases, Bookie obtained the local IP of 127.0.0.1, which caused an abnormal report status.

get ip method:
InetAddress.getLocalHost().getHostAddress();

host


 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
  ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Although it can be solved by setting up the host, but the customer does not necessarily set it when using it, so if you do not rely on this when obtaining the IP, it will be much more friendly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants