fix(beacon): skip point-to-point interfaces on Android (#10504)

This commit is contained in:
bt90
2025-12-23 18:56:20 +00:00
committed by GitHub
parent 962b917150
commit b7b494b7cf
2 changed files with 18 additions and 2 deletions
+6
View File
@@ -14,6 +14,7 @@ import (
"time"
"github.com/syncthing/syncthing/internal/slogutil"
"github.com/syncthing/syncthing/lib/build"
"github.com/syncthing/syncthing/lib/netutil"
)
@@ -64,6 +65,11 @@ func writeBroadcasts(ctx context.Context, inbox <-chan []byte, port int) error {
continue
}
if build.IsAndroid && intf.Flags&net.FlagPointToPoint != 0 {
// skip cellular interfaces
continue
}
addrs, err := netutil.InterfaceAddrsByInterface(&intf)
if err != nil {
l.Debugln("Failed to list interface addresses:", err)