mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-29 03:04:02 -04:00
only set up localhost port forwarding if skipnatmapping is false.
This commit is contained in:
@@ -46,7 +46,7 @@ func (c *CommConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs
|
||||
c.HostPortMax = c.SSHHostPortMax
|
||||
}
|
||||
|
||||
if c.Comm.SSHHost == "" {
|
||||
if c.Comm.SSHHost == "" && c.SkipNatMapping {
|
||||
c.Comm.SSHHost = "127.0.0.1"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user