summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/CompileSocket.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala
index bb01655709..c2aa60cd5c 100644
--- a/src/compiler/scala/tools/nsc/CompileSocket.scala
+++ b/src/compiler/scala/tools/nsc/CompileSocket.scala
@@ -205,9 +205,9 @@ class CompileSocket {
} else {
val port = if(create) getPort(vmArgs) else pollPort()
if(port < 0) return null
- val hostName = InetAddress.getLocalHost().getHostName()
+ val hostAdr = InetAddress.getLocalHost()
try {
- val result = new Socket(hostName, port)
+ val result = new Socket(hostAdr, port)
info("[Connected to compilation daemon at port " + port + "]")
result
} catch {