From 3b9dfe2c2219440af2073072e6b680668b968bb1 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 19 Mar 2025 21:44:58 +0100 Subject: Make User-Agent configurable --- config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.go') diff --git a/config.go b/config.go index 3ddf42a..0b09061 100644 --- a/config.go +++ b/config.go @@ -33,6 +33,7 @@ type config struct { Ignore ignoreRules `json:"ignore"` Port string `json:"port"` UserTokens map[string]userToken `json:"user_tokens"` + UserAgent string `json:"user_agent"` } type ignoreRules struct { @@ -46,6 +47,7 @@ func printConfig(cfg *config) { log.Print("Loaded configuration: ") log.Print(" Calendar URL: ", cfg.CalendarURL.v.String()) log.Print(" HTTP Port: ", cfg.Port) + log.Print(" User Agent: ", cfg.UserAgent) log.Print(" Ignoring:") for _, entry := range cfg.Ignore.LocationRegexes { log.Printf(" Events with locations matching %s", entry.String()) -- cgit v1.2.3