]> Cypherpunks.ru repositories - nncp.git/commitdiff
Yggdrasil's bind addresses are URLs too
authorSergey Matveev <stargrave@stargrave.org>
Sun, 16 Jan 2022 13:50:18 +0000 (16:50 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 16 Jan 2022 13:50:18 +0000 (16:50 +0300)
doc/yggdrasil.texi

index 3d1c73f9dc288e2f386a6813bffcfa3207d08a21..75c4d6120bc43aa12b1757c925d1149f61fc3199 100644 (file)
@@ -75,12 +75,12 @@ allowed incoming connections, identified by a public key, and optionally
 a list of another similar listening peers, through which you can route
 and discover packets to the other nodes. @option{-yggdrasil} option
 takes that information in form of:
-@code{PRV;BIND[,...];[PUB,...];[PEER,...]}, where @code{PEER} is in
-Yggdrasil's URL format, like @code{tcp://HOST:PORT} or
-@code{tcp://HOST:PORT?key=PUBKEY}.
+@code{PRV;BIND[,...];[PUB,...];[PEER,...]}, where
+@code{BIND}/@code{PEER} is in Yggdrasil's URL format, like
+@code{tcp://HOST:PORT} or @code{tcp://HOST:PORT?key=PUBKEY}.
 
 @example
-$ nncp-daemon -yggdrasil "571f...07ea;[::]:1234,[::1]:2345;;tcp://some.peer?key=ITSPUBKEY"
+$ nncp-daemon -yggdrasil "571f...07ea;tcp://[::]:1234,tcp://[::1]:2345;;tcp://some.peer?key=ITSPUBKEY"
 @end example
 
 Here we did not specify any allowable public key -- anyone can connect
@@ -94,8 +94,8 @@ section, where you can alias all of entities and reference them in
 @verbatim
 yggdrasil-aliases: {
   myprv: 571f...07ea
-  bindPublic: [::]:1234
-  bindLocalhost: [::1]:2345
+  bindPublic: tcp://[::]:1234
+  bindLocalhost: tcp://[::1]:2345
   peerBE: tcp://some.peer.be?key=BEPUBKEY
   peerRU: tcp://some.peer.ru?key=RUPUBKEY
   defPeers: peerBE,peerRU