refactor(fakedns): FakeIPServer.get(domain) now returns Option<IpAddr>; cleaned unused deps

This commit is contained in:
Namilsk 2026-09-28 20:25:57 +03:00
parent 7954859517
commit bb417b8a6d
No known key found for this signature in database
GPG key ID: 2B2F0A4D870B4F9F
6 changed files with 52 additions and 29 deletions

View file

@ -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

View file

@ -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.