Commit b773e8de authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: Listen on 127.0.0.1 specifically to avoid hangs

parent 5425aeca
## 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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment