minor fixed (#120)

1. fix mtu, always set by ourselves and use smaller value
2. wireguard connector should return tunnel after receive packet
This commit is contained in:
Sijie.Sun
2024-05-18 18:04:06 +08:00
committed by GitHub
parent 0ead308392
commit 6efbb5cb3d
4 changed files with 79 additions and 58 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ pub struct Flags {
pub enable_encryption: bool,
#[derivative(Default(value = "true"))]
pub enable_ipv6: bool,
#[derivative(Default(value = "1420"))]
#[derivative(Default(value = "1380"))]
pub mtu: u16,
#[derivative(Default(value = "true"))]
pub latency_first: bool,