1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/proxy/socks/account.go
2016-08-20 20:55:45 +02:00

19 lines
326 B
Go

package socks
import (
"v2ray.com/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
}