mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-22 19:16:29 +03:00
Update nodeinfo
This commit is contained in:
@@ -41,12 +41,12 @@ func NewYggdrasilTransport(log *log.Logger, sk ed25519.PrivateKey, pk ed25519.Pu
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
NodeInfo: map[string]interface{}{
|
NodeInfo: map[string]interface{}{
|
||||||
"name": "Yggmail",
|
"name": hex.EncodeToString(pk) + "@yggmail",
|
||||||
},
|
},
|
||||||
NodeInfoPrivacy: true,
|
NodeInfoPrivacy: true,
|
||||||
}
|
}
|
||||||
yellow := color.New(color.FgYellow).SprintfFunc()
|
yellow := color.New(color.FgYellow).SprintfFunc()
|
||||||
glog := gologme.New(log.Writer(), fmt.Sprintf("[ %s ] ", yellow("Yggdrasil")), gologme.LstdFlags | gologme.Lmsgprefix)
|
glog := gologme.New(log.Writer(), fmt.Sprintf("[ %s ] ", yellow("Yggdrasil")), gologme.LstdFlags|gologme.Lmsgprefix)
|
||||||
glog.EnableLevel("warn")
|
glog.EnableLevel("warn")
|
||||||
glog.EnableLevel("error")
|
glog.EnableLevel("error")
|
||||||
glog.EnableLevel("info")
|
glog.EnableLevel("info")
|
||||||
|
|||||||
Reference in New Issue
Block a user