diff --git a/authentik/outposts/channels.py b/authentik/outposts/channels.py index d104e1f16..ab9739f1b 100644 --- a/authentik/outposts/channels.py +++ b/authentik/outposts/channels.py @@ -82,7 +82,8 @@ class OutpostConsumer(AuthJsonConsumer): state.version = msg.args.get("version", None) elif msg.instruction == WebsocketMessageInstruction.ACK: return - state.save(timeout=OUTPOST_HELLO_INTERVAL * 1.5) + if state.version: + state.save(timeout=OUTPOST_HELLO_INTERVAL * 1.5) response = WebsocketMessage(instruction=WebsocketMessageInstruction.ACK) self.send_json(asdict(response))