ports/net/syncthing/files/patch-syncthing_lib_beacon_multicast.go
Steve Wills 57a3995a94 net/syncthing: update to 1.18.1 [0]
While here, work around multicast issue until all supported versions
have the fix [1]

PR:		257322 [1]
Obtained from:	Alex Vasylenko <lxv@omut.org> [1]
2021-08-27 21:45:42 -04:00

12 lines
509 B
Go

--- syncthing/lib/beacon/multicast.go.orig 2021-07-06 12:51:32 UTC
+++ syncthing/lib/beacon/multicast.go
@@ -126,6 +126,9 @@ func readMulticasts(ctx context.Context, outbox chan<-
pconn := ipv6.NewPacketConn(conn)
joined := 0
for _, intf := range intfs {
+ 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)