handle last peer error case [CI SKIP]
This commit is contained in:
@@ -194,6 +194,10 @@ impl PeerBuilder {
|
||||
self.validate().is_ok()
|
||||
}
|
||||
|
||||
pub fn has_key(&self) -> bool {
|
||||
self.key.is_some()
|
||||
}
|
||||
|
||||
pub fn add_allowed_ip(&mut self, ip: (IpAddr, u8)) {
|
||||
if let Some(ref mut ips) = &mut self.allowed_ips {
|
||||
ips.push(ip);
|
||||
|
||||
Reference in New Issue
Block a user