Browse Source

add log output in case no action is needed

master
lub 2 years ago
parent
commit
115afc0428
  1. 2
      expose_forwards.ps1

2
expose_forwards.ps1

@ -168,6 +168,8 @@ foreach($yaml in (Get-ChildItem -Path $Stacks -Include 'docker-compose.yml' -Rec
'--to-destination','"{0}:{1}"' -f $ingress_address,$nat.published_port
)
Add-IptablesRule -Chain $Chain -Rule $rule
} else {
Write-Output ('No additional rule needed for {0}:{1}' -f $nat.ip,$nat.port)
}
}
}
Loading…
Cancel
Save