Skip to content

Commit

Permalink
Change get getipaddr to default to loopback
Browse files Browse the repository at this point in the history
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.

closes JuliaLang#5945
  • Loading branch information
ihnorton committed Feb 26, 2014
1 parent 0dbbaf7 commit ec9be75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/socket.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

##
Expand Down

0 comments on commit ec9be75

Please sign in to comment.