Skip to content

Commit

Permalink
Fixed bug where skip_nat_mapping would overwrite winrm_host to 127.0.…
Browse files Browse the repository at this point in the history
…0.1 (#68)

* Fixed bug where skip_nat_mapping would overwrite winrm_host to 127.0.0.1

* Fixed mistake

* Update builder/qemu/comm_config.go

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
  • Loading branch information
Antoine-Gicquel and nywilken committed May 25, 2022
1 parent 1a08bd3 commit f65be3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/qemu/comm_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (c *CommConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs
c.HostPortMax = c.SSHHostPortMax
}

if c.Comm.SSHHost == "" && c.SkipNatMapping {
if c.Comm.Host() == "" && c.SkipNatMapping {
c.Comm.SSHHost = "127.0.0.1"
c.Comm.WinRMHost = "127.0.0.1"
}
Expand Down

0 comments on commit f65be3c

Please sign in to comment.