This validity check is reduntant.

This commit is contained in:
Alexander Andreev 2022-06-26 14:55:05 +04:00
parent 1130568e39
commit f0ced332e8
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -48,10 +48,6 @@ func main() {
log.Fatalln(err) log.Fatalln(err)
} }
if !ap.IsValid() {
log.Fatalln("ip and/or port provided are not valid")
}
if ap.Addr().Is4() { if ap.Addr().Is4() {
network = "tcp4" network = "tcp4"
} else if ap.Addr().Is6() { } else if ap.Addr().Is6() {