diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-03-23 18:38:34 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-03-23 18:39:00 +0100 |
commit | 3a9e75374f434e4cebadb6cfb322be3e2e80d0f0 (patch) | |
tree | 637653fe6b47a491e62a0c5d4f32fd77088ef031 /conn/sticky_default.go | |
parent | cc20c08c9615edbb31b96c89201bf1b2189fe159 (diff) |
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 <Jason@zx2c4.com>
Diffstat (limited to 'conn/sticky_default.go')
-rw-r--r-- | conn/sticky_default.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conn/sticky_default.go b/conn/sticky_default.go index 8c0adf5..05f00ea 100644 --- a/conn/sticky_default.go +++ b/conn/sticky_default.go @@ -1,4 +1,4 @@ -//go:build !linux +//go:build !linux || android /* SPDX-License-Identifier: MIT * @@ -23,3 +23,5 @@ func setSrcControl(control *[]byte, ep *StdNetEndpoint) { // srcControlSize returns the recommended buffer size for pooling sticky control // data. const srcControlSize = 0 + +const StdNetSupportsStickySockets = false |