support change tun interface name (#151)

This commit is contained in:
yylt authored and GitHub committed 2024-07-03 15:41:12 +08:00
1 parent 34f832bbad
commit 0f39bfcefa
3 files changed
+8

No files matched your search

+2
View File
@@ -150,6 +150,8 @@ pub struct VpnPortalConfig {
pub struct Flags {
#[derivative(Default(value = "\"tcp\".to_string()"))]
pub default_protocol: String,
#[derivative(Default(value = "\"tun\".to_string()"))]
pub dev_name: String,
#[derivative(Default(value = "true"))]
pub enable_encryption: bool,
#[derivative(Default(value = "true"))]