only set up localhost port forwarding if skipnatmapping is false.

pull/9479/head
Megan Marsh 6 years ago
parent 38eef12b83
commit cd5cf77998

@ -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"
}

Loading…
Cancel
Save