rename NSCConfig to Config for now :1
This commit is contained in:
parent
2a01827e6c
commit
1b6a2f126a
2 changed files with 11 additions and 11 deletions
|
|
@ -8,7 +8,7 @@ pub enum RunTypes {
|
|||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct NSCConfig {
|
||||
pub struct Config {
|
||||
/// Paths to v2ray `geosite.dat', `geoip.dat`
|
||||
pub geo_files: [String; 2],
|
||||
/// Routing settings similar to v2ray
|
||||
|
|
@ -17,7 +17,7 @@ pub struct NSCConfig {
|
|||
pub mode: RunTypes,
|
||||
}
|
||||
|
||||
impl Default for NSCConfig {
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
geo_files: [
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use ipnet::IpNet;
|
||||
use crate::config::NSCConfig;
|
||||
use crate::config::Config;
|
||||
|
||||
/// Enum for declaring GeoSite/IP routing
|
||||
pub enum RouteType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue