1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 21:15:46 -05:00

Socks supports multiple accounts

This commit is contained in:
V2Ray
2015-10-10 15:51:35 +02:00
parent 7cce04cc3a
commit 213aa2ecf0
5 changed files with 44 additions and 14 deletions

View File

@@ -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 {