Force tcp and udp ports when http mode

This commit is contained in:
Owen
2026-04-28 20:27:27 -07:00
parent 2957d6592d
commit 4cf6ca1d55
3 changed files with 39 additions and 13 deletions

View File

@@ -440,9 +440,12 @@ export async function updateSiteResource(
destinationPort,
enabled,
alias: alias ? alias.trim() : null,
tcpPortRangeString,
udpPortRangeString,
disableIcmp,
tcpPortRangeString:
mode == "http" ? "443,80" : tcpPortRangeString,
udpPortRangeString:
mode == "http" ? "" : udpPortRangeString,
disableIcmp:
disableIcmp || (mode == "http" ? true : false), // default to true for http resources, otherwise false
domainId,
subdomain: finalSubdomain,
fullDomain,