chore: unconditionally allow clients with passwords for password-free socks5 inbound (#2123)

This commit is contained in:
ayanamist
2025-06-24 18:04:42 +08:00
committed by xishang0128
parent 2c55dc2557
commit 5c6aa433ca
2 changed files with 12 additions and 0 deletions

View File

@@ -41,3 +41,11 @@ func NewAuthenticator(users []AuthUser) Authenticator {
}
return au
}
var AlwaysValid Authenticator = alwaysValid{}
type alwaysValid struct{}
func (alwaysValid) Verify(string, string) bool { return true }
func (alwaysValid) Users() []string { return nil }