diff --git a/client/iface/bind/ice_bind.go b/client/iface/bind/ice_bind.go index d889a684b..02985e1f3 100644 --- a/client/iface/bind/ice_bind.go +++ b/client/iface/bind/ice_bind.go @@ -220,7 +220,7 @@ func (s *ICEBind) receiveIP( if err != nil { return 0, err } - numMsgs, err = splitCoalescedMessages(*msgs, readAt, wgConn.GetGSOSize) + numMsgs, err = splitCoalescedMessages(*msgs, readAt, GetGSOSize) if err != nil { return 0, err } diff --git a/client/iface/bind/ice_bind_linux.go b/client/iface/bind/ice_bind_linux.go new file mode 100644 index 000000000..8024fbbc4 --- /dev/null +++ b/client/iface/bind/ice_bind_linux.go @@ -0,0 +1,5 @@ +package bind + +func GetGSOSize(control []byte) (int, error) { + return wgConn.GetGSOSize(control) +} diff --git a/client/iface/bind/ice_bind_nonlinux.go b/client/iface/bind/ice_bind_nonlinux.go new file mode 100644 index 000000000..401179a26 --- /dev/null +++ b/client/iface/bind/ice_bind_nonlinux.go @@ -0,0 +1,6 @@ +// go:build !linux +package bind + +func GetGSOSize(control []byte) (int, error) { + return 0, nil +}