YTSFlix_Go/vendor/github.com/anacrolix/missinggo/net.go
2018-11-04 15:58:15 +01:00

8 lines
138 B
Go

package missinggo
import "strings"
func IsAddrInUse(err error) bool {
return strings.Contains(err.Error(), "address already in use")
}