From f0ced332e87e0294c787ab4803a04700174b6f12 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 14:55:05 +0400 Subject: [PATCH] This validity check is reduntant. --- cmd/justcaptchad/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index a422de6..a1ca01c 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -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() {