We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bad022 commit 21f3b85Copy full SHA for 21f3b85
lib/pure/nativesockets.nim
@@ -438,7 +438,7 @@ proc getHostname*(): string {.tags: [ReadIOEffect].} =
438
## Returns the local hostname (not the FQDN)
439
# https://tools.ietf.org/html/rfc1035#section-2.3.1
440
# https://tools.ietf.org/html/rfc2181#section-11
441
- const size = 64
+ const size = 256
442
result = newString(size)
443
when useWinVersion:
444
let success = winlean.gethostname(result, size)
0 commit comments