Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: fix incorrect Pod eth0 MTU when using WireGuard
When the WireGuard tunnel is enabled, the Pod eth0's MTU is not correct. The MTU only deducts Geneve overhead because the default tunnel type is Geneve. This patch check the TrafficEncryptionMode when calculate the MTU deduction, when the TrafficEncryptionMode is WireGuard, then it will deducts the WG overhead.
- Loading branch information