caddy-cc: only open port 443/tcp and forward port 443/udp to talk directly

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-11-24 10:22:59 +01:00
parent cc3ceb1766
commit 9f0b2625ea
2 changed files with 2 additions and 7 deletions

View file

@ -13,11 +13,6 @@
"ip_binding": "", "ip_binding": "",
"port_number": "443", "port_number": "443",
"protocol": "tcp" "protocol": "tcp"
},
{
"ip_binding": "",
"port_number": "443",
"protocol": "udp"
} }
], ],
"environment": [ "environment": [

View file

@ -290,8 +290,8 @@ readonly class DockerActionManager {
} }
} else if ($port === '%TALK_PORT%') { } else if ($port === '%TALK_PORT%') {
$port = $this->configurationManager->GetTalkPort(); $port = $this->configurationManager->GetTalkPort();
// Skip publishing talk port if it is set to 443 // Skip publishing talk tcp port if it is set to 443
if ($port === '443') { if ($port === '443' && $protocol === 'tcp') {
continue; continue;
} }
} }