Socks supports multiple accounts

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

No files matched your search

+6 -2
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 {