packer/rpc: Listen on 127.0.0.1 specifically to avoid hangs

pull/89/merge
Mitchell Hashimoto 13 years ago
parent 832223f321
commit 6f705d5bcb

@ -1,3 +1,9 @@
## 0.1.3 (unreleased)
BUG FIXES:
* core: More plugin server fixes that avoid hangs on OS X 10.7 [GH-87]
## 0.1.2 (June 29, 2013)
IMPROVEMENTS:

@ -20,7 +20,7 @@ func PortRange(min, max int) {
// bound to that port.
func netListenerInRange(min, max int) net.Listener {
for port := min; port <= max; port++ {
l, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
l, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", port))
if err == nil {
return l
}

Loading…
Cancel
Save