From 204855b8a1064d2cb58ddbf9d5f2ebafd95ad727 Mon Sep 17 00:00:00 2001 From: Isaiah Norton Date: Mon, 24 Feb 2014 21:43:03 -0500 Subject: [PATCH] Change get getipaddr to default to loopback Allows building with no external IP address: 62d0b3d4 introduced a dependency on getipaddr(), which previously raised an error if no external address was found. This broke bootstrap on a loopback-only network. --- base/socket.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/socket.jl b/base/socket.jl index 715479f3d02bd..b8c91b1b8c62b 100644 --- a/base/socket.jl +++ b/base/socket.jl @@ -546,7 +546,7 @@ function getipaddr() end end ccall(:uv_free_interface_addresses,Void,(Ptr{Uint8},Int32),addr,count) - error("no active external interfaces") + return ip"127.0.0.1" end ##