From 43e06987ad64a70de2f14db0745ffd097fe951de Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Mon, 17 Mar 2025 16:47:27 -0400 Subject: [PATCH] fix: slice off trailing slash if present on headscale url --- server/context/parser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/context/parser.ts b/server/context/parser.ts index b324990..485078f 100644 --- a/server/context/parser.ts +++ b/server/context/parser.ts @@ -35,7 +35,8 @@ const oidcConfig = type({ }).onDeepUndeclaredKey('reject'); const headscaleConfig = type({ - url: 'string.url', + url: type('string.url').pipe((v) => (v.endsWith('/') ? v.slice(0, -1) : v)), + tls_cert_path: 'string?', public_url: 'string.url?', config_path: 'string?', config_strict: stringToBool,