54e5fb
diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c
54e5fb
index 0968601..447aeb1 100644
54e5fb
--- a/ncat/ncat_connect.c
54e5fb
+++ b/ncat/ncat_connect.c
54e5fb
@@ -353,7 +353,7 @@ static const char *sock_to_url(char *host_str, unsigned short port)
54e5fb
            Snprintf(buf, sizeof(buf), "%s:%hu", host_str, port);
54e5fb
            break;
54e5fb
        case 2:
54e5fb
-           Snprintf(buf, sizeof(buf), "[%s]:%hu]", host_str, port);
54e5fb
+           Snprintf(buf, sizeof(buf), "[%s]:%hu", host_str, port);
54e5fb
     }
54e5fb
 
54e5fb
     return buf;