mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-05 19:34:12 +00:00
* fix in the net.`$` to print zeros that are not in the compressed group
* Update lib/pure/net.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Update net.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
(cherry picked from commit 7252a50fef)
This commit is contained in:
@@ -1827,6 +1827,10 @@ proc `$`*(address: IpAddress): string =
|
||||
result.add(chr(uint16(ord('a'))+val-0xA))
|
||||
afterLeadingZeros = true
|
||||
mask = mask shr 4
|
||||
|
||||
if not afterLeadingZeros:
|
||||
result.add '0'
|
||||
|
||||
printedLastGroup = true
|
||||
|
||||
proc dial*(address: string, port: Port,
|
||||
|
||||
Reference in New Issue
Block a user