diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/vpnweb/vpnweb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/vpnweb/vpnweb.go b/cmd/vpnweb/vpnweb.go index f59cc7d..ddd919c 100644 --- a/cmd/vpnweb/vpnweb.go +++ b/cmd/vpnweb/vpnweb.go @@ -24,8 +24,8 @@ func main() { http.HandleFunc("/3/refresh-token", auth.RefreshAuthMiddleware(opts.Auth)) */ - http.Handle("/3/cert", auth.RestrictedMiddleware(opts.Auth, ch)) - http.HandleFunc("/3/auth", auth.Authenticator(opts)) + http.Handle("/3/cert", auth.RestrictedMiddleware(opts, ch)) + http.HandleFunc("/3/auth", auth.AuthenticatorMiddleware(opts)) /* static files */ |