mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
18 lines
292 B
Go
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 }
|