add log output in case no action is needed

master
lub 4 years ago
parent 5d6adcab4d
commit 115afc0428

@ -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 '--to-destination','"{0}:{1}"' -f $ingress_address,$nat.published_port
) )
Add-IptablesRule -Chain $Chain -Rule $rule Add-IptablesRule -Chain $Chain -Rule $rule
} else {
Write-Output ('No additional rule needed for {0}:{1}' -f $nat.ip,$nat.port)
} }
} }
} }
Loading…
Cancel
Save