mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2026-01-09 22:28:27 -05:00
fix(autotls): private checkedGetPrimaryIPAddr (#1489)
This commit is contained in:
@@ -30,7 +30,7 @@ const
|
||||
|
||||
type AutoTLSError* = object of LPError
|
||||
|
||||
proc checkedGetPrimaryIPAddr(): IpAddress {.raises: [AutoTLSError].} =
|
||||
proc checkedGetPrimaryIPAddr*(): IpAddress {.raises: [AutoTLSError].} =
|
||||
# This is so that we don't need to catch Exceptions directly
|
||||
# since we support 1.6.16 and getPrimaryIPAddr before nim 2 didn't have explicit .raises. pragmas
|
||||
try:
|
||||
|
||||
@@ -19,6 +19,7 @@ import
|
||||
autotls/acme/api,
|
||||
autotls/acme/client,
|
||||
autotls/manager,
|
||||
autotls/utils,
|
||||
multiaddress,
|
||||
switch,
|
||||
builders,
|
||||
|
||||
Reference in New Issue
Block a user