Lines Matching refs:addr
89 fn addr2ipfingerprint(addr: &SocketAddr) -> String { in addr2ipfingerprint()
90 addr.ip().to_string() in addr2ipfingerprint()
123 pub async fn has_permission(&self, addr: &SocketAddr) -> bool { in has_permission()
125 permissions.get(&addr2ipfingerprint(addr)).is_some() in has_permission()
130 let fingerprint = addr2ipfingerprint(&p.addr); in add_permission()
150 pub async fn remove_permission(&self, addr: &SocketAddr) -> bool { in remove_permission()
152 permissions.remove(&addr2ipfingerprint(addr)).is_some() in remove_permission()
159 if let Some(addr) = self.get_channel_addr(&c.number).await { in add_channel_bind()
160 if addr != c.peer { in add_channel_bind()
214 pub async fn get_channel_number(&self, addr: &SocketAddr) -> Option<ChannelNumber> { in get_channel_number()
217 if cb.peer == *addr { in get_channel_number()