From 3a9e75374f434e4cebadb6cfb322be3e2e80d0f0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 23 Mar 2023 18:38:34 +0100 Subject: conn: disable sticky sockets on Android We can't have the netlink listener socket, so it's not possible to support it. Plus, android networking stack complexity makes it a bit tricky anyway, so best to leave it disabled. Signed-off-by: Jason A. Donenfeld --- device/sticky_linux.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'device') diff --git a/device/sticky_linux.go b/device/sticky_linux.go index 3ce0769..f9230f8 100644 --- a/device/sticky_linux.go +++ b/device/sticky_linux.go @@ -25,6 +25,9 @@ import ( ) func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) { + if !conn.StdNetSupportsStickySockets { + return nil, nil + } if _, ok := bind.(*conn.StdNetBind); !ok { return nil, nil } -- cgit v1.2.3-54-g00ecf