1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-05 13:35:23 +00:00
v2fly/proxy/socks/account.go

19 lines
326 B
Go
Raw Normal View History

2016-07-25 21:45:25 +00:00
package socks
import (
2016-08-20 18:55:45 +00:00
"v2ray.com/core/common/protocol"
2016-07-25 21:45:25 +00:00
)
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
}