]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/cfg.go
Specify call addresses through the config
[nncp.git] / src / cypherpunks.ru / nncp / cfg.go
index bb6c5207292dd86fed39b9ecfb2d68b688f52019..4e6268d93ef2606526bb155f968545c74e787cf9 100644 (file)
@@ -39,6 +39,8 @@ type NodeYAML struct {
        Incoming *string  `incoming,omitempty`
        Freq     *string  `freq,omitempty`
        Via      []string `via,omitempty`
+
+       Addrs map[string]string `addrs,omitempty`
 }
 
 type NodeOurYAML struct {
@@ -127,6 +129,7 @@ func NewNode(name string, yml NodeYAML) (*Node, error) {
                NoisePub: new([32]byte),
                Incoming: incoming,
                Freq:     freq,
+               Addrs:    yml.Addrs,
        }
        copy(node.ExchPub[:], exchPub)
        copy(node.NoisePub[:], noisePub)