mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 17:03:09 +00:00
deploy: cce1313aa4c930589162ba85d759177db3c613fa
This commit is contained in:
parent
0aa5005656
commit
2c8196b77e
@ -3,6 +3,7 @@
|
|||||||
Attempts to dial a peer and asserts it supports a given set of protocols.
|
Attempts to dial a peer and asserts it supports a given set of protocols.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
./build/wakucanary --help
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
wakucanary [OPTIONS]...
|
wakucanary [OPTIONS]...
|
||||||
@ -14,6 +15,7 @@ The following options are available:
|
|||||||
-p, --protocol Protocol required to be supported: store,relay,lightpush,filter (can be used
|
-p, --protocol Protocol required to be supported: store,relay,lightpush,filter (can be used
|
||||||
multiple times).
|
multiple times).
|
||||||
-l, --log-level Sets the log level [=LogLevel.DEBUG].
|
-l, --log-level Sets the log level [=LogLevel.DEBUG].
|
||||||
|
-np, --node-port Listening port for waku node [=60000].
|
||||||
```
|
```
|
||||||
|
|
||||||
The tool can be built as:
|
The tool can be built as:
|
||||||
|
|||||||
@ -50,6 +50,12 @@ type
|
|||||||
name: "log-level",
|
name: "log-level",
|
||||||
abbr: "l" .}: LogLevel
|
abbr: "l" .}: LogLevel
|
||||||
|
|
||||||
|
nodePort* {.
|
||||||
|
desc: "Listening port for waku node",
|
||||||
|
defaultValue: 60000,
|
||||||
|
name: "node-port",
|
||||||
|
abbr: "np" }: uint16
|
||||||
|
|
||||||
|
|
||||||
proc parseCmdArg*(T: type chronos.Duration, p: string): T =
|
proc parseCmdArg*(T: type chronos.Duration, p: string): T =
|
||||||
try:
|
try:
|
||||||
@ -112,7 +118,7 @@ proc main(): Future[int] {.async.} =
|
|||||||
node = WakuNode.new(
|
node = WakuNode.new(
|
||||||
nodeKey,
|
nodeKey,
|
||||||
ValidIpAddress.init("0.0.0.0"),
|
ValidIpAddress.init("0.0.0.0"),
|
||||||
Port(60000),
|
Port(conf.nodePort),
|
||||||
nameResolver = resolver)
|
nameResolver = resolver)
|
||||||
|
|
||||||
await node.start()
|
await node.start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user