v0.26.7
This commit is contained in:
1 parent
5d2aaeabe6
commit
9d6614c1b4
62 files changed
+558
-230
No files matched your search
+3
-1
@@ -35,7 +35,7 @@ pub use client::{
|
||||
client, client_with_keepalive, client_with_timeout, ClientRotationStats, ProxyClient,
|
||||
};
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq)]
|
||||
pub struct AddressPolicy {
|
||||
pub allow_private: bool,
|
||||
pub accept_local_listener_risk: bool,
|
||||
@@ -77,6 +77,8 @@ impl AddressPolicy {
|
||||
let addresses = local_addresses();
|
||||
self.interfaces_known = addresses.is_some();
|
||||
self.local_ips = addresses.unwrap_or_default();
|
||||
self.local_ips.sort_unstable();
|
||||
self.local_ips.dedup();
|
||||
self
|
||||
}
|
||||
pub fn with_bindings(mut self, bindings: &[SocketAddr]) -> Self {
|
||||
|
||||
Reference in new issue
Block a user