This validity check is reduntant.
This commit is contained in:
parent
1130568e39
commit
f0ced332e8
@ -48,10 +48,6 @@ func main() {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
if !ap.IsValid() {
|
||||
log.Fatalln("ip and/or port provided are not valid")
|
||||
}
|
||||
|
||||
if ap.Addr().Is4() {
|
||||
network = "tcp4"
|
||||
} else if ap.Addr().Is6() {
|
||||
|
Loading…
Reference in New Issue
Block a user