fix(beacon): skip point-to-point interfaces on Android (#10504)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user