diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-01-25 15:54:54 -0600 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-01-25 15:54:54 -0600 |
commit | 5bb198c1a5da3132945915947b88ad4a59dc7fcb (patch) | |
tree | f45dd66d22649b556308f419a9dae93b28f02da6 /cmd/vpnweb/vpnweb.go | |
parent | 307582d9d193f282fc20182468a02ed0c55b4f99 (diff) |
pass sip authentication variables as env vars
Diffstat (limited to 'cmd/vpnweb/vpnweb.go')
-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 */ |