Since wireguard doesn't use md_dsts we should use skb_valid_dst(), which checks for DST_METADATA flag, and if it's set, then falls back to wireguard's device mtu. That gives us the best chance of transmitting the packet; otherwise if the blackhole netdev is used we'd get ETH_MIN...
Expand DownExpand Up@@ -36,7 +37,13 @@ func NewInner(conn net.Conn, dst string, host string) *context.ConnContext { ifh,port,err:=net.SplitHostPort(dst);err==nil{ metadata.DstPort=port ifhost==""{ metadata.Host=h ifip,err:=netip.ParseAddr(h);err==nil{ ...
Update metadata schema 0d52052 View details dstansby merged commit a48e79a into main Feb 13, 2025 1 check passed dstansby deleted the update branch February 13, 2025 20:55 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Reviewers...