network: add auto-detection of optimal MTU for WireGuard interface, --wg-mtu flag, set max_mtu for Corrosion to 1232

This commit is contained in:
Pasha Sviderski committed 2026-06-16 21:36:12 +10:00
1 parent 2f76187bf5
commit 0c3b8b122f
18 files changed
+373 -170

No files matched your search

+6 -3
View File
@@ -31,9 +31,12 @@ type DBConfig struct {
}
type GossipConfig struct {
Addr netip.AddrPort `toml:"addr"`
Bootstrap []string `toml:"bootstrap"`
Plaintext bool `toml:"plaintext"`
Addr netip.AddrPort `toml:"addr"`
// MaxMTU is the upper bound for QUIC's MTU, preventing automatic MTU discovery. It is the effective MTU:
// the gossip network interface's MTU minus the IP and UDP header sizes. Must be >= 1200. Omitted when zero.
MaxMTU uint32 `toml:"max_mtu,omitempty"`
Bootstrap []string `toml:"bootstrap"`
Plaintext bool `toml:"plaintext"`
}
type APIConfig struct {