git: d5c4a9a0b847 - main - net/syncthing: Update to 2.0.13

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Tue, 06 Jan 2026 13:40:06 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d5c4a9a0b84708293793573c8d0386e6f274c3bf

commit d5c4a9a0b84708293793573c8d0386e6f274c3bf
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2026-01-06 13:34:09 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2026-01-06 13:38:34 +0000

    net/syncthing: Update to 2.0.13
    
    Also updated the patch for the "work around multicast issue" - upstream
    has updated their code slight, but it still doesn't match the patch from
    2021. see 57a3995a942c59fa51caa39552b290243e957613
---
 net/syncthing/Makefile                                      |  3 +--
 net/syncthing/distinfo                                      |  6 +++---
 net/syncthing/files/patch-syncthing_lib_beacon_multicast.go | 13 ++++++-------
 3 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/net/syncthing/Makefile b/net/syncthing/Makefile
index c7481d74099b..afab2e4fc4eb 100644
--- a/net/syncthing/Makefile
+++ b/net/syncthing/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	syncthing
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.0.12
-PORTREVISION=	2
+DISTVERSION=	2.0.13
 CATEGORIES=	net
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/
 DISTNAME=	${PORTNAME}-source-${DISTVERSIONFULL}
diff --git a/net/syncthing/distinfo b/net/syncthing/distinfo
index 5b62c0a7e9ed..767632fac899 100644
--- a/net/syncthing/distinfo
+++ b/net/syncthing/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1764678760
-SHA256 (syncthing-source-v2.0.12.tar.gz) = 56004ae6d974aa387c3c6a734eb98aafd5d6159fc657a1f4c618e0b1814fadae
-SIZE (syncthing-source-v2.0.12.tar.gz) = 62613260
+TIMESTAMP = 1767704310
+SHA256 (syncthing-source-v2.0.13.tar.gz) = fd7c93e01a6d61faa84adda8b22479dd7fd106144fbbb2eb15d773707d8a382e
+SIZE (syncthing-source-v2.0.13.tar.gz) = 62623134
diff --git a/net/syncthing/files/patch-syncthing_lib_beacon_multicast.go b/net/syncthing/files/patch-syncthing_lib_beacon_multicast.go
index 2b817687cf6e..d44b72e8e104 100644
--- a/net/syncthing/files/patch-syncthing_lib_beacon_multicast.go
+++ b/net/syncthing/files/patch-syncthing_lib_beacon_multicast.go
@@ -1,12 +1,11 @@
---- syncthing/lib/beacon/multicast.go.orig	2021-07-06 12:51:32 UTC
+--- syncthing/lib/beacon/multicast.go.orig	2026-01-06 13:20:06 UTC
 +++ syncthing/lib/beacon/multicast.go
-@@ -126,6 +126,9 @@ func readMulticasts(ctx context.Context, outbox chan<-
+@@ -129,7 +129,7 @@ func readMulticasts(ctx context.Context, outbox chan<-
  	pconn := ipv6.NewPacketConn(conn)
  	joined := 0
  	for _, intf := range intfs {
+-		if intf.Flags&net.FlagMulticast == 0 {
 +		if intf.Flags&net.FlagUp == 0 || intf.Flags&net.FlagMulticast == 0 || intf.Name == "ipfw0" {
-+			continue
-+		}
- 		err := pconn.JoinGroup(&intf, &net.UDPAddr{IP: gaddr.IP})
- 		if err != nil {
- 			l.Debugln("IPv6 join", intf.Name, "failed:", err)
+ 			slog.DebugContext(ctx, "Not joining multicast group on non-multicast interface", "name", intf.Name, slog.String("flags", intf.Flags.String()))
+ 			continue
+ 		}