]> Sergey Matveev's repositories - btrtrc.git/blob - tracker/udp/udp_unix.go
More Windows test fixes
[btrtrc.git] / tracker / udp / udp_unix.go
1 //go:build !windows
2
3 package udp
4
5 import (
6         "strings"
7 )
8
9 func isErrMessageTooLong(err error) bool {
10         if err == nil {
11                 return false
12         }
13         return strings.Contains(err.Error(), "message too long")
14 }