]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/sockets/sockets.factor
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / basis / io / sockets / sockets.factor
index 8c40b0d980c1914d855c04869d5d46bb77044553..9ffa6231ca496d3d20bc705c65cb6e7b2e651a5c 100644 (file)
@@ -214,7 +214,7 @@ M: inet6 parse-sockaddr
     [ call-next-method ] [ drop port>> ntohs ] 2bi with-port ;
 
 M: inet6 present
-    [ call-next-method ] [ port>> number>string ] bi ":" glue ;
+    [ call-next-method "[" "]" surround ] [ port>> number>string ] bi ":" glue ;
 
 M: inet6 protocol drop 0 ;