mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
Socks supports multiple accounts
This commit is contained in:
1 parent
7cce04cc3a
commit
213aa2ecf0
5 files changed
+44
-14
No files matched your search
@@ -107,8 +107,12 @@ type Socks5UserPassRequest struct {
|
||||
password string
|
||||
}
|
||||
|
||||
func (request Socks5UserPassRequest) IsValid(username string, password string) bool {
|
||||
return request.username == username && request.password == password
|
||||
func (request Socks5UserPassRequest) Username() string {
|
||||
return request.username
|
||||
}
|
||||
|
||||
func (request Socks5UserPassRequest) Password() string {
|
||||
return request.password
|
||||
}
|
||||
|
||||
func (request Socks5UserPassRequest) AuthDetail() string {
|
||||
|
||||
Reference in new issue
Block a user