mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-04-16 05:03:32 +00:00
same as previous commit
This commit is contained in:
parent
945f1f8693
commit
0e4e6f369f
@ -483,7 +483,7 @@ with the drawback of consuming some more bandwidth.""",
|
||||
|
||||
restAddress* {.
|
||||
desc: "Listening address of the REST HTTP server.",
|
||||
defaultValue: parseIpAddress("127.0.0.1"),
|
||||
defaultValue: IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
|
||||
name: "rest-address"
|
||||
.}: IpAddress
|
||||
|
||||
@ -523,7 +523,7 @@ with the drawback of consuming some more bandwidth.""",
|
||||
|
||||
metricsServerAddress* {.
|
||||
desc: "Listening address of the metrics server.",
|
||||
defaultValue: parseIpAddress("127.0.0.1"),
|
||||
defaultValue: IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
|
||||
name: "metrics-server-address"
|
||||
.}: IpAddress
|
||||
|
||||
@ -777,7 +777,7 @@ proc completeCmdArg*(T: type IpAddress, val: string): seq[string] =
|
||||
|
||||
proc defaultListenAddress*(): IpAddress =
|
||||
# TODO: Should probably listen on both ipv4 and ipv6 by default.
|
||||
(static parseIpAddress("0.0.0.0"))
|
||||
(static IpAddress(family: IpAddressFamily.IPv4, address_v4: [0'u8, 0, 0, 0]))
|
||||
|
||||
proc defaultColocationLimit*(): int =
|
||||
return DefaultColocationLimit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user