status-go/vendor/github.com/anacrolix/missinggo/v2/net.go

8 lines
138 B
Go

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