Merge pull request #9479 from hashicorp/fix_9475

only set up localhost port forwarding if skipnatmapping is false.
This commit is contained in:
Wilken Rivera 2020-06-24 14:11:23 -04:00 committed by GitHub
commit 85bffc40da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (c *CommConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs
c.HostPortMax = c.SSHHostPortMax c.HostPortMax = c.SSHHostPortMax
} }
if c.Comm.SSHHost == "" { if c.Comm.SSHHost == "" && c.SkipNatMapping {
c.Comm.SSHHost = "127.0.0.1" c.Comm.SSHHost = "127.0.0.1"
} }