Browse Source

add log output in case no action is needed

master
lub 5 months ago
parent
commit
115afc0428
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      expose_forwards.ps1

+ 2
- 0
expose_forwards.ps1 View File

@ -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