summaryrefslogtreecommitdiffhomepage
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/sticky_linux.go3
1 files changed, 3 insertions, 0 deletions
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
}