mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
19 lines
339 B
Go
19 lines
339 B
Go
|
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
|
||
|
}
|