mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
339 B
19 lines
339 B
8 years ago
|
package socks
|
||
|
|
||
|
import (
|
||
|
"github.com/v2ray/v2ray-core/common/protocol"
|
||
|
)
|
||
|
|
||
|
type Account struct {
|
||
|
Username string `json:"user"`
|
||
|
Password string `json:"pass"`
|
||
|
}
|
||
|
|
||
|
func (this *Account) Equals(another protocol.Account) bool {
|
||
|
socksAccount, ok := another.(*Account)
|
||
|
if !ok {
|
||
|
return false
|
||
|
}
|
||
|
return this.Username == socksAccount.Username
|
||
|
}
|