Fix nil check for server

This commit is contained in:
some 2024-10-08 19:09:03 -04:00
parent 63f669f03f
commit 5bf391d53b
Signed by: some
GPG Key ID: 65D0589220B9BFC8

View File

@ -33,7 +33,7 @@ func (ro *Router) AddRequiredRoutes(requiredRoutes []string) {
return
}
for _, pattern := range requiredRoutes {
ro.routes[Route{pattern: pattern, required: true}] = &server{}
ro.routes[Route{pattern: pattern, required: true}] = nil
}
}