torrent/tracker/udp/udp_unix.go

15 lines
195 B
Go

//go:build !windows
package udp
import (
"strings"
)
func isErrMessageTooLong(err error) bool {
if err == nil {
return false
}
return strings.Contains(err.Error(), "message too long")
}