This commit is contained in:
@ -15,6 +15,15 @@ func (pl *PeerList) GetFromPublicKey(publickey string) *Peer {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (pl *PeerList) GetFromInvitationId(invitationId string) *Peer {
|
||||
for _, peer := range *pl {
|
||||
if peer.InvitationId == invitationId {
|
||||
return peer
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (pl *PeerList) GetFromMyLookupKey(publickey string) *Peer {
|
||||
for _, peer := range *pl {
|
||||
if peer.MyLookupKp.Public == publickey {
|
||||
|
Reference in New Issue
Block a user