YTSFlix_Go/vendor/github.com/anacrolix/missinggo/net.go

8 lines
138 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package missinggo
import "strings"
func IsAddrInUse(err error) bool {
return strings.Contains(err.Error(), "address already in use")
}