Remove -Program parameter from windows firewall rule (#739)

This commit is contained in:
henrygd
2025-04-14 17:19:24 -04:00
parent 330e4c67f3
commit fd4ac60908

View File

@@ -148,7 +148,7 @@ try {
# Create new rule with current settings
Write-Host "Creating firewall rule for beszel-agent on port $Port..."
try {
New-NetFirewallRule -DisplayName $ruleName -Direction Inbound -Program $agentPath -Action Allow -Protocol TCP -LocalPort $Port
New-NetFirewallRule -DisplayName $ruleName -Direction Inbound -Action Allow -Protocol TCP -LocalPort $Port
Write-Host "Firewall rule created successfully."
} catch {
Write-Host "Warning: Failed to create firewall rule: $($_.Exception.Message)" -ForegroundColor Yellow