mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
control,tailcfg,wgengine/magicsock: add nodeAttr to enable/disable peer MTU
Add a nodeAttr to enable/disable peer path MTU discovery. Updates #311 Signed-off-by: Val <valerie@tailscale.com>
This commit is contained in:
@@ -34,6 +34,14 @@ func (c *Conn) ShouldPMTUD() bool {
|
||||
}
|
||||
return v
|
||||
}
|
||||
if c.controlKnobs != nil {
|
||||
if v := c.controlKnobs.PeerMTUEnable.Load(); v {
|
||||
if debugPMTUD() {
|
||||
c.logf("magicsock: peermtu: peer path MTU discovery enabled by control")
|
||||
}
|
||||
return v
|
||||
}
|
||||
}
|
||||
if debugPMTUD() {
|
||||
c.logf("magicsock: peermtu: peer path MTU discovery set by default to false")
|
||||
}
|
||||
|
Reference in New Issue
Block a user