15 lines
246 B
Go
15 lines
246 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
|
|
}
|