summaryrefslogtreecommitdiffhomepage
path: root/device/sticky_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/sticky_linux.go')
-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
}