From 6f705d5bcbedcc88b82c8015af5f8a2d25be2861 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 1 Jul 2013 09:31:55 -0700 Subject: [PATCH] packer/rpc: Listen on 127.0.0.1 specifically to avoid hangs --- CHANGELOG.md | 6 ++++++ packer/rpc/port.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de9617e3a..630e07791 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/packer/rpc/port.go b/packer/rpc/port.go index e12241781..bf917780b 100644 --- a/packer/rpc/port.go +++ b/packer/rpc/port.go @@ -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 }