mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Handle null host ip from NetUtils.getDefaultHostIp().
This commit is contained in:
parent
8d08f9b74b
commit
1e21b0b0e8
@ -57,7 +57,11 @@ public class LocalHostEndpoint implements EndPoint {
|
||||
|
||||
@Override
|
||||
public String getPublicAddr() {
|
||||
return NetUtils.getDefaultHostIp();
|
||||
String hostIp= NetUtils.getDefaultHostIp();
|
||||
if (hostIp != null)
|
||||
return hostIp;
|
||||
else
|
||||
return "127.0.0.0";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user