A found tunnel carries its MTU to the mesh

The host parses MTU from the found [Interface] and reports it, so the
mesh's interface can come up with the same MTU when it takes the tunnel
over. A path tuned to 1380 regresses to the 1420 default otherwise —
invisible to ping, fatal to TLS handshakes and transfers over that path
(novox/hq: the mesh had no MTU concept). Zero when the config named
none, and the mesh writes no MTU line then.
This commit is contained in:
2026-09-26 22:39:54 +02:00
parent 5dbc8e5c3c
commit 8e2a1e762d
4 changed files with 37 additions and 1 deletions
+1
View File
@@ -68,6 +68,7 @@ type Tunnel struct {
Port int `json:"port"`
Address string `json:"address"`
Range string `json:"range"`
MTU int `json:"mtu,omitempty"`
PublicKey string `json:"public_key"`
Peers []TunnelPeer `json:"peers,omitempty"`
}