mihomo/listener/auth/auth.go
wwqgtxx 518e9bdb0b
Some checks are pending
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
feat: socks5, http and mixed listeners support independence users
2024-08-25 19:33:31 +08:00

18 lines
292 B
Go

package auth
import (
"github.com/metacubex/mihomo/component/auth"
)
var authenticator auth.Authenticator
func Authenticator() auth.Authenticator {
return authenticator
}
func SetAuthenticator(au auth.Authenticator) {
authenticator = au
}
func Nil() auth.Authenticator { return nil }