mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-10 17:20:26 -04:00
fix logic
This commit is contained in:
parent
dde162622d
commit
a55b73473a
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ type StepStartTunnel struct {
|
|||
func (s *StepStartTunnel) ConfigureLocalHostPort(ctx context.Context) error {
|
||||
minPortNumber, maxPortNumber := 8000, 9000
|
||||
|
||||
if s.IAPConf.IAPLocalhostPort == 0 {
|
||||
if s.IAPConf.IAPLocalhostPort != 0 {
|
||||
minPortNumber = s.IAPConf.IAPLocalhostPort
|
||||
maxPortNumber = minPortNumber
|
||||
log.Printf("Using TCP port for %d IAP proxy", s.IAPConf.IAPLocalhostPort)
|
||||
|
|
|
|||
Loading…
Reference in a new issue