From 3d967b586c8b277a5fd2ddc16289856205144036 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Thu, 14 Nov 2024 00:27:43 +0100 Subject: Fix loading config --- icalproxy.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'icalproxy.go') diff --git a/icalproxy.go b/icalproxy.go index cf09e5d..9ca1b33 100644 --- a/icalproxy.go +++ b/icalproxy.go @@ -15,7 +15,11 @@ func main() { cfg := loadConfig() printConfig(&cfg) - handler := handler{ignore: cfg.Ignore, tokens: cfg.UserTokens} + handler := handler{ + calURL: url.URL(cfg.CalendarURL), + ignore: cfg.Ignore, + tokens: cfg.UserTokens, + } mux := http.ServeMux{} mux.HandleFunc("/", handler.handle) -- cgit v1.2.3