github.com/xraypb/xray-core@v1.6.6/proxy/mtproto/config.go (about) 1 package mtproto 2 3 import ( 4 "github.com/xraypb/xray-core/common/protocol" 5 ) 6 7 func (a *Account) Equals(another protocol.Account) bool { 8 aa, ok := another.(*Account) 9 if !ok { 10 return false 11 } 12 13 if len(a.Secret) != len(aa.Secret) { 14 return false 15 } 16 17 for i, v := range a.Secret { 18 if v != aa.Secret[i] { 19 return false 20 } 21 } 22 23 return true 24 }