summaryrefslogtreecommitdiff
path: root/src/geoparsers
diff options
context:
space:
mode:
authorzedddie <rust@zedddie.rs>2026-03-15 13:47:48 +0100
committertuturuu <zedddiezxc@gmail.com>2026-03-15 13:47:48 +0100
commit1b6a2f126af11f493aea55a24bf63981f6d6fa20 (patch)
treea3d24d8c8c185486b26e1c81c02b536fd4f248e8 /src/geoparsers
parent2a01827e6c41ab4770b478ecfd0a740c5983be24 (diff)
rename NSCConfig to Config for now :1
Diffstat (limited to 'src/geoparsers')
-rw-r--r--src/geoparsers/geoip2.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/geoparsers/geoip2.rs b/src/geoparsers/geoip2.rs
index 39ad79d..af5d03e 100644
--- a/src/geoparsers/geoip2.rs
+++ b/src/geoparsers/geoip2.rs
@@ -1,12 +1,12 @@
use ipnet::IpNet;
-use crate::config::NSCConfig;
+use crate::config::Config;
-/// Enum for declaring GeoSite/IP routing
+/// Enum for declaring GeoSite/IP routing
pub enum RouteType {
/// GeoSite MMDB type, like `category-ads-all`
GeoSite(String),
/// Subnet
- GeoIp(IpNet),
+ GeoIp(IpNet),
}
/// Routing actions
@@ -18,15 +18,15 @@ pub enum RouteAction {
type Rules = Vec<Rule>;
-/// Type for declaring the routing rules like:
-/// ```toml
+/// Type for declaring the routing rules like:
+/// ```toml
/// [rule]
-/// action = enum RouteAction
-/// target = enum RouteType
+/// action = enum RouteAction
+/// target = enum RouteType
///
/// [rule]
-/// target = "geosite:category-ads-all"
-/// action = "block"
+/// target = "geosite:category-ads-all"
+/// action = "block"
/// ```
pub struct Rule {
pub target: RouteType,