]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cfg.go
Yggdrasil overlay transport
[nncp.git] / src / cfg.go
index ee8f4c63c348896f2fdf212b52a5112ca3e74f7f..0937ab0f4f51d5eef96e6f2dd9d2b0d54cd57e7a 100644 (file)
@@ -146,6 +146,8 @@ type CfgJSON struct {
        Neigh map[string]NodeJSON `json:"neigh"`
 
        Areas map[string]AreaJSON `json:"areas,omitempty"`
+
+       YggdrasilAliases map[string]string `json:"yggdrasil-aliases,omitempty"`
 }
 
 func NewNode(name string, cfg NodeJSON) (*Node, error) {
@@ -542,6 +544,8 @@ func Cfg2Ctx(cfgJSON *CfgJSON) (*Ctx, error) {
                Alias:      make(map[string]*NodeId),
                MCDRxIfis:  cfgJSON.MCDRxIfis,
                MCDTxIfis:  cfgJSON.MCDTxIfis,
+
+               YggdrasilAliases: cfgJSON.YggdrasilAliases,
        }
        if cfgJSON.Notify != nil {
                if cfgJSON.Notify.File != nil {