refactor(fakedns): FakeIPServer.get(domain) now returns Option<IpAddr>; cleaned unused deps
This commit is contained in:
parent
7954859517
commit
bb417b8a6d
6 changed files with 52 additions and 29 deletions
|
|
@ -4,7 +4,7 @@ use serde::Deserialize;
|
|||
use std::net::IpAddr;
|
||||
|
||||
// For now only MMDB because i cant found .proto schemes of
|
||||
// V2Ray GeoSite.dat :((
|
||||
// V2Ray GeoSite.dat/GeoIP.dat :((
|
||||
// TODO: V2Ray protobuf parsing && Test 4 ts
|
||||
|
||||
/// Interface enum for `dst_addr` info
|
||||
|
|
|
|||
|
|
@ -33,7 +33,17 @@ pub mod domain {
|
|||
}
|
||||
}
|
||||
/// Type of domain value.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
PartialEq,
|
||||
Eq,
|
||||
Hash,
|
||||
PartialOrd,
|
||||
Ord,
|
||||
::prost::Enumeration
|
||||
)]
|
||||
#[repr(i32)]
|
||||
pub enum Type {
|
||||
/// The value is used as is.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue