aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/Transport.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-09-29 16:36:21 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-09-29 16:36:21 +0200
commitb4656dc85fe215bf79eadedd868be0082fe70ab0 (patch)
treea3e11af2608694114a7fd5288748c7b2508e20d0 /jrt/src/com/yahoo/jrt/Transport.java
parent59f27953f5c8cd144f31f45a82d88d21511b8e6a (diff)
Yahoo sets up mac wireless networks such that the local hostname points to an
ip which does not resolve. This works around that problem by finding a resolvable address (while still falling back to localhost if we only get ipv6 addresses, as that causes other problems in docker containers).
Diffstat (limited to 'jrt/src/com/yahoo/jrt/Transport.java')
-rw-r--r--jrt/src/com/yahoo/jrt/Transport.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/jrt/src/com/yahoo/jrt/Transport.java b/jrt/src/com/yahoo/jrt/Transport.java
index 85bfed79732..6a9a978fb77 100644
--- a/jrt/src/com/yahoo/jrt/Transport.java
+++ b/jrt/src/com/yahoo/jrt/Transport.java
@@ -229,9 +229,8 @@ public class Transport {
* @param context application context for the new connection
* @param sync perform a synchronous connect in the calling thread
* if this flag is set
- **/
- Connection connect(Supervisor owner, Spec spec,
- Object context, boolean sync) {
+ */
+ Connection connect(Supervisor owner, Spec spec, Object context, boolean sync) {
Connection conn = new Connection(this, owner, spec, context);
if (sync) {
addConnection(conn.connect());