diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-09-28 12:22:26 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-09-28 12:22:26 +0200 |
commit | 321194bbe4a36d100d92188644d90c6cf4d373c7 (patch) | |
tree | dc2056158a3412aad0fda352496d86e6318d8959 /vespajlib/src/main/java/com | |
parent | cc406b3dacac9de80d16ed4f56998defce33556f (diff) |
Run Application with VespaModel instead of MockRoot
Diffstat (limited to 'vespajlib/src/main/java/com')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/net/HostName.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/net/HostName.java b/vespajlib/src/main/java/com/yahoo/net/HostName.java index 9dff33e1f5f..7d5617f41e5 100644 --- a/vespajlib/src/main/java/com/yahoo/net/HostName.java +++ b/vespajlib/src/main/java/com/yahoo/net/HostName.java @@ -20,8 +20,10 @@ public class HostName { * * @return the name of localhost. * @throws RuntimeException if executing the command 'hostname' fails. - * @see LinuxInetAddress if you need a host name/address which is reachable */ + // Note. This will not currently return a FQDN in Mac. + // If that is needed, add + // java.net.InetAddress.getByName(myHost).getCanonicalHostName() public static synchronized String getLocalhost() { if (myHost == null) { try { @@ -38,4 +40,5 @@ public class HostName { } return myHost; } + } |