From e2f0a76309fad7cfd4472122317e73930dce275e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 7 Apr 2022 17:30:33 +0200 Subject: [PATCH] outposts: check if docker ports should be mapped before comparing ports Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index 2806a9aa5..ed10dcb7f 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -157,7 +157,7 @@ class DockerController(BaseController): # {'HostIp': '::', 'HostPort': '389'} # ]} # If no ports are mapped (either mapping disabled, or host network) - if not container.ports: + if not container.ports or not self.outpost.config.docker_map_ports: return False for port in self.deployment_ports: key = f"{port.inner_port or port.port}/{port.protocol.lower()}"