client: set default MTU to 1412 for all interfaces
Since peer endpoints can be either IPv4 or IPv6, it doesn't make sense to specify a default MTU that could only work with IPv4 based on only the server's endpoint. Setting to 1412 instead of 1420 in order to accomodate PPPoE peers, which should fit most internet situations.pull/202/head
parent
a7f7204bd7
commit
83e0750cde
|
@ -102,11 +102,7 @@ pub fn up(
|
|||
set_addr(interface, address)?;
|
||||
set_up(
|
||||
interface,
|
||||
network.mtu.unwrap_or(if matches!(address, IpNet::V4(_)) {
|
||||
1420
|
||||
} else {
|
||||
1400
|
||||
}),
|
||||
network.mtu.unwrap_or(1412),
|
||||
)?;
|
||||
if !network.no_routing {
|
||||
add_route(interface, address)?;
|
||||
|
|
Loading…
Reference in New Issue