Added access control bypass for /.well-known router

This commit is contained in:
Toby Chui
2023-06-23 23:45:49 +08:00
parent 741d3f8de1
commit 44ac7144ec
3 changed files with 62 additions and 37 deletions

View File

@@ -13,10 +13,11 @@ import (
*/
type RoutingRule struct {
ID string
MatchRule func(r *http.Request) bool
RoutingHandler func(http.ResponseWriter, *http.Request)
Enabled bool
ID string //ID of the routing rule
Enabled bool //If the routing rule enabled
UseSystemAccessControl bool //Pass access control check to system white/black list, set this to false to bypass white/black list
MatchRule func(r *http.Request) bool
RoutingHandler func(http.ResponseWriter, *http.Request)
}
// Router functions