summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-07-04 15:42:15 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-07-04 15:42:15 +0200
commit86e3502bca6d410786c73379336f238495240bfe (patch)
tree44c5926598d190a2e226b541d22a131f189033d3 /container-core
parent629b0329fbedf764e938c892a0a6ef29ed2a125f (diff)
Remove changes that will be part of another PR
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/osgi/ContainerRpcAdaptor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/osgi/ContainerRpcAdaptor.java b/container-core/src/main/java/com/yahoo/container/osgi/ContainerRpcAdaptor.java
index 8de5aa18305..6b06b872770 100644
--- a/container-core/src/main/java/com/yahoo/container/osgi/ContainerRpcAdaptor.java
+++ b/container-core/src/main/java/com/yahoo/container/osgi/ContainerRpcAdaptor.java
@@ -12,7 +12,6 @@ import com.yahoo.jrt.Supervisor;
import com.yahoo.jrt.Transport;
import com.yahoo.jrt.slobrok.api.Register;
import com.yahoo.jrt.slobrok.api.SlobrokList;
-import com.yahoo.net.HostName;
import com.yahoo.net.LinuxInetAddress;
import com.yahoo.log.LogLevel;
import com.yahoo.osgi.Osgi;
@@ -45,7 +44,7 @@ public class ContainerRpcAdaptor extends AbstractRpcAdaptor {
public ContainerRpcAdaptor(Osgi osgi) {
this.osgi = osgi;
this.supervisor = new Supervisor(new Transport());
- this.hostname = HostName.getLocalhost();
+ this.hostname = LinuxInetAddress.getLocalHost().getCanonicalHostName();
bindCommands(supervisor);
}