summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authornamilsk <namilsk@namilsk.tech>2026-03-17 19:19:14 +0300
committernamilsk <namilsk@namilsk.tech>2026-03-17 19:19:14 +0300
commit0d8f7c437399531d700c2e01b4e0b33ba72bd689 (patch)
tree57677d4efa4766b19dda5da6354674cf7ef77d0c /src/config.rs
parentb2e7bb0317cd75946c275620de0aa9e579c0fae5 (diff)
Working on IP geo parsers && packet router
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 6552a65..846a1b5 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -9,7 +9,7 @@ pub enum RunTypes {
#[derive(Serialize, Deserialize)]
pub struct Config {
- /// Paths to v2ray `geosite.dat', `geoip.dat`
+ /// Paths to `geosite.dat', `geolite2.mmdb`
pub geo_files: [String; 2],
/// Routing settings similar to v2ray
pub routing: String,
@@ -17,11 +17,21 @@ pub struct Config {
pub mode: RunTypes,
}
+// TODO: Think how to add other anonymisers
+// Like VPN on localhost:10808
+// it can be like:
+// ```toml
+// [[proxy]]
+// name = "VPN"
+// addr = "127.0.0.1:10808"
+// type = "SOCKS5" # ...
+// ```
+
impl Default for Config {
fn default() -> Self {
Self {
geo_files: [
- String::from("/etc/nsc/data/geoip.dat"),
+ String::from("/etc/nsc/data/geolite2.mmdb"),
String::from("/etc/nsc/data/geosite.dat"),
],
routing: String::from("/etc/nsc/routing.toml"),