Fix non-linux

This commit is contained in:
Viktor Liu
2024-10-30 17:43:20 +01:00
parent 356654756c
commit 1219027ad1
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -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
}
+5
View File
@@ -0,0 +1,5 @@
package bind
func GetGSOSize(control []byte) (int, error) {
return wgConn.GetGSOSize(control)
}
+6
View File
@@ -0,0 +1,6 @@
// go:build !linux
package bind
func GetGSOSize(control []byte) (int, error) {
return 0, nil
}