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

8 lines
138 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package missinggo
import "strings"
func IsAddrInUse(err error) bool {
return strings.Contains(err.Error(), "address already in use")
}