github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/proxy/mtproto/config.go (about)

     1  package mtproto
     2  
     3  import (
     4  	"v2ray.com/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  }