From a1c0ff0c906b3ee741cfae05ee7d0663859c3bf5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 28 Jun 2013 21:45:18 -0400 Subject: [PATCH] packer/plugin: Bind to 127.0.0.1. Somehow fixes [GH-37] --- packer/plugin/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/plugin/plugin.go b/packer/plugin/plugin.go index 137b691b2..c34b564a4 100644 --- a/packer/plugin/plugin.go +++ b/packer/plugin/plugin.go @@ -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") {