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

This commit is contained in:
Mitchell Hashimoto 2013-06-28 21:45:18 -04:00
parent c7a4b11f0f
commit 09862d9c2b
1 changed files with 1 additions and 1 deletions

View File

@ -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") {