From 9f0b8b71dbb14dd4b53ec567ffa59abc470cee73 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 8 Jun 2015 20:47:47 -0700 Subject: [PATCH] virtualbox,vmware: http server should listen on IPv4 --- builder/virtualbox/common/step_http_server.go | 2 +- builder/vmware/common/step_http_server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/virtualbox/common/step_http_server.go b/builder/virtualbox/common/step_http_server.go index 440d9adbc..55874992e 100644 --- a/builder/virtualbox/common/step_http_server.go +++ b/builder/virtualbox/common/step_http_server.go @@ -49,7 +49,7 @@ func (s *StepHTTPServer) Run(state multistep.StateBag) multistep.StepAction { } httpPort = offset + s.HTTPPortMin - httpAddr = fmt.Sprintf(":%d", httpPort) + httpAddr = fmt.Sprintf("0.0.0.0:%d", httpPort) log.Printf("Trying port: %d", httpPort) s.l, err = net.Listen("tcp", httpAddr) if err == nil { diff --git a/builder/vmware/common/step_http_server.go b/builder/vmware/common/step_http_server.go index 440d9adbc..55874992e 100644 --- a/builder/vmware/common/step_http_server.go +++ b/builder/vmware/common/step_http_server.go @@ -49,7 +49,7 @@ func (s *StepHTTPServer) Run(state multistep.StateBag) multistep.StepAction { } httpPort = offset + s.HTTPPortMin - httpAddr = fmt.Sprintf(":%d", httpPort) + httpAddr = fmt.Sprintf("0.0.0.0:%d", httpPort) log.Printf("Trying port: %d", httpPort) s.l, err = net.Listen("tcp", httpAddr) if err == nil {