mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-16 06:37:23 +08:00
smoltcp use larger tx/rx buf size (#1085)
* smoltcp use larger tx/rx buf size * fix direct conn check
This commit is contained in:
@@ -54,12 +54,17 @@ pub struct NetConfig {
|
||||
}
|
||||
|
||||
impl NetConfig {
|
||||
pub fn new(interface_config: Config, ip_addr: IpCidr, gateway: Vec<IpAddress>) -> Self {
|
||||
pub fn new(
|
||||
interface_config: Config,
|
||||
ip_addr: IpCidr,
|
||||
gateway: Vec<IpAddress>,
|
||||
buffer_size: Option<BufferSize>,
|
||||
) -> Self {
|
||||
Self {
|
||||
interface_config,
|
||||
ip_addr,
|
||||
gateway,
|
||||
buffer_size: Default::default(),
|
||||
buffer_size: buffer_size.unwrap_or_default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user