summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2022-11-03 05:48:51 -0300
committerGitHub <noreply@github.com>2022-11-03 09:48:51 +0100
commit4503fa5422db80ef8286113780af9d526b953574 (patch)
tree24f9e001df5b8bf29853cd7af91106c0976c5629
parentf562a5c55cd8533569012211c0f06a11c7554c59 (diff)
downloadNim-4503fa5422db80ef8286113780af9d526b953574.tar.gz
Uri.isIpv6 exported (#20736)
* Export Uri.isIpv6

* Export Uri.isIpv6
-rw-r--r--changelog.md1
-rw-r--r--lib/pure/uri.nim2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 5bd00774c..c89f398c5 100644
--- a/changelog.md
+++ b/changelog.md
@@ -114,6 +114,7 @@
 - Undeprecated `os.isvalidfilename`.
 - `std/oids` now uses `int64` to store time internally (before it was int32).
 - `std/uri.Uri` dollar `$` improved, precalculates the `string` result length from the `Uri`.
+- `std/uri.Uri.isIpv6` is now exported.
 
 
 - `std/net.IpAddress` dollar `$` improved, uses a fixed capacity for the `string` result based from the `IpAddressFamily`.
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim
index edab71c97..ebc8b90ef 100644
--- a/lib/pure/uri.nim
+++ b/lib/pure/uri.nim
@@ -50,7 +50,7 @@ type
     scheme*, username*, password*: string
     hostname*, port*, path*, query*, anchor*: string
     opaque*: bool
-    isIpv6: bool # not expose it for compatibility.
+    isIpv6*: bool
 
   UriParseError* = object of ValueError