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.
24 lines
331 B
24 lines
331 B
package mtproto |
|
|
|
import ( |
|
"v2ray.com/core/common/protocol" |
|
) |
|
|
|
func (a *Account) Equals(another protocol.Account) bool { |
|
aa, ok := another.(*Account) |
|
if !ok { |
|
return false |
|
} |
|
|
|
if len(a.Secret) != len(aa.Secret) { |
|
return false |
|
} |
|
|
|
for i, v := range a.Secret { |
|
if v != aa.Secret[i] { |
|
return false |
|
} |
|
} |
|
|
|
return true |
|
}
|
|
|