diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-04-05 02:38:26 +0200 |
|---|---|---|
| committer | Joakim Hulthe <joakim.hulthe@mullvad.net> | 2025-04-07 11:24:57 +0200 |
| commit | 31d919788fd2aef21f4d18a68c82a552ea7ecaa9 (patch) | |
| tree | f49eeff37e005d51f9033e08620543f8d69e0144 | |
| parent | b6dc727c9a132085a448a0be89f1b0e78b23ab7d (diff) | |
| download | mullvadvpn-31d919788fd2aef21f4d18a68c82a552ea7ecaa9.tar.xz mullvadvpn-31d919788fd2aef21f4d18a68c82a552ea7ecaa9.zip | |
Use consistent name for payload size limit
| -rw-r--r-- | mullvad-masque-proxy/src/server/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mullvad-masque-proxy/src/server/mod.rs b/mullvad-masque-proxy/src/server/mod.rs index 9d27d98834..4abc810a4d 100644 --- a/mullvad-masque-proxy/src/server/mod.rs +++ b/mullvad-masque-proxy/src/server/mod.rs @@ -33,7 +33,7 @@ const MASQUE_WELL_KNOWN_PATH: &str = "/.well-known/masque/udp/"; pub struct Server { endpoint: Endpoint, allowed_hosts: AllowedIps, - max_packet_size: u16, + maximum_packet_size: u16, } #[derive(Clone)] @@ -52,7 +52,7 @@ impl Server { bind_addr: SocketAddr, allowed_hosts: HashSet<IpAddr>, tls_config: Arc<rustls::ServerConfig>, - max_packet_size: u16, + maximum_packet_size: u16, ) -> Result<Self> { let server_config = quinn::ServerConfig::with_crypto(Arc::new( QuicServerConfig::try_from(tls_config).map_err(Error::BadTlsConfig)?, @@ -65,7 +65,7 @@ impl Server { allowed_hosts: AllowedIps { hosts: Arc::new(allowed_hosts), }, - max_packet_size, + maximum_packet_size, }) } @@ -74,7 +74,7 @@ impl Server { tokio::spawn(Self::handle_incoming_connection( new_connection, self.allowed_hosts.clone(), - self.max_packet_size, + self.maximum_packet_size, )); } Ok(()) |
