Improve config model names

This commit is contained in:
Keivan-sf
2025-07-27 18:25:04 +03:30
parent 2a6c452c0d
commit 291f98f687
3 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ pub struct VnextUser {
}
#[derive(Serialize, Deserialize)]
pub struct VlessServerObject {
pub struct VnextServerObject {
pub address: Option<String>,
pub port: Option<u16>,
pub users: Option<Vec<VnextUser>>,
@@ -26,12 +26,12 @@ pub struct TrojanServerObject {
#[derive(Serialize, Deserialize)]
pub struct VlessOutboundSettings {
pub vnext: Vec<VlessServerObject>,
pub vnext: Vec<VnextServerObject>,
}
#[derive(Serialize, Deserialize)]
pub struct VmessOutboundSettings {
pub vnext: Vec<VlessServerObject>,
pub vnext: Vec<VnextServerObject>,
}
#[derive(Serialize, Deserialize)]

View File

@@ -4,7 +4,7 @@ use crate::{config_models::*, utils::parse_raw_json};
pub fn create_outbound_settings(data: &RawData) -> OutboundSettings {
return OutboundSettings::Vless(VlessOutboundSettings {
vnext: vec![VlessServerObject {
vnext: vec![VnextServerObject {
port: data.port,
address: data.address.clone(),
users: Some(vec![VnextUser {

View File

@@ -4,7 +4,7 @@ use crate::{config_models::*, utils::parse_raw_json};
pub fn create_outbound_settings(data: &RawData) -> OutboundSettings {
return OutboundSettings::Vmess(VmessOutboundSettings {
vnext: vec![VlessServerObject {
vnext: vec![VnextServerObject {
port: data.port,
address: data.address.clone(),
users: Some(vec![VnextUser {