Fix auth function setup

This commit is contained in:
Bolke de Bruin
2022-08-26 11:42:10 +02:00
parent c76de478e2
commit 19e9e3269d
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ func main() {
ReceiveBuf: conf.Server.ReceiveBuf,
}
if conf.Caps.TokenAuth {
gwConfig.VerifyTunnelAuthFunc = security.VerifyPAAToken
gwConfig.VerifyTunnelCreate = security.VerifyPAAToken
gwConfig.VerifyServerFunc = security.CheckSession(security.CheckHost)
} else {
gwConfig.VerifyServerFunc = security.CheckHost