diff options
Diffstat (limited to 'icalproxy.go')
| -rw-r--r-- | icalproxy.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/icalproxy.go b/icalproxy.go index cf09e5d..9ca1b33 100644 --- a/icalproxy.go +++ b/icalproxy.go | |||
| @@ -15,7 +15,11 @@ func main() { | |||
| 15 | cfg := loadConfig() | 15 | cfg := loadConfig() |
| 16 | printConfig(&cfg) | 16 | printConfig(&cfg) |
| 17 | 17 | ||
| 18 | handler := handler{ignore: cfg.Ignore, tokens: cfg.UserTokens} | 18 | handler := handler{ |
| 19 | calURL: url.URL(cfg.CalendarURL), | ||
| 20 | ignore: cfg.Ignore, | ||
| 21 | tokens: cfg.UserTokens, | ||
| 22 | } | ||
| 19 | 23 | ||
| 20 | mux := http.ServeMux{} | 24 | mux := http.ServeMux{} |
| 21 | mux.HandleFunc("/", handler.handle) | 25 | mux.HandleFunc("/", handler.handle) |