Commit 09862d9c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/plugin: Bind to 127.0.0.1. Somehow fixes [GH-37]

parent c7a4b11f
......@@ -56,7 +56,7 @@ func serve(server *rpc.Server) (err error) {
var address string
var listener net.Listener
for port := minPort; port <= maxPort; port++ {
address = fmt.Sprintf(":%d", port)
address = fmt.Sprintf("127.0.0.1:%d", port)
listener, err = net.Listen("tcp", address)
if err != nil {
if !strings.Contains(err.Error(), "address already in use") {
......
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