Skip to content

Commit

Permalink
Merge pull request moby#45636 from corhere/libn/fix-encrypted-overlay…
Browse files Browse the repository at this point in the history
…-nonstandard-port

libnetwork/d/overlay: support encryption on any port
  • Loading branch information
corhere committed May 26, 2023
2 parents 13fb244 + 9a692a3 commit 8f7bbc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libnetwork/drivers/overlay/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ func programSP(fSA *netlink.XfrmState, rSA *netlink.XfrmState, add bool) error {
Src: &net.IPNet{IP: s, Mask: fullMask},
Dst: &net.IPNet{IP: d, Mask: fullMask},
Dir: netlink.XFRM_DIR_OUT,
Proto: 17,
DstPort: 4789,
Proto: syscall.IPPROTO_UDP,
DstPort: int(overlayutils.VXLANUDPPort()),
Mark: &spMark,
Tmpls: []netlink.XfrmPolicyTmpl{
{
Expand Down Expand Up @@ -582,8 +582,8 @@ func updateNodeKey(lIP, aIP, rIP net.IP, idxs []*spi, curKeys []*key, newIdx, pr
Src: &net.IPNet{IP: s, Mask: fullMask},
Dst: &net.IPNet{IP: d, Mask: fullMask},
Dir: netlink.XFRM_DIR_OUT,
Proto: 17,
DstPort: 4789,
Proto: syscall.IPPROTO_UDP,
DstPort: int(overlayutils.VXLANUDPPort()),
Mark: &spMark,
Tmpls: []netlink.XfrmPolicyTmpl{
{
Expand Down

0 comments on commit 8f7bbc3

Please sign in to comment.