introduce '-nodiscovery' option to disable automatic peer discovery

Closes #847.
This commit is contained in:
Matthias Radestock committed 2015-06-05 15:13:48 +01:00
1 parent 5f5c0079d3
commit 8f85a07ecc
7 files changed
+40 -19

No files matched your search

+10 -9
View File
@@ -8,16 +8,17 @@ import (
func (router *Router) StatusJSON(version string) ([]byte, error) {
return json.Marshal(struct {
Version string
Encryption bool
Name string
NickName string
Interface string
Macs *MacCache
Peers *Peers
Routes *Routes
Version string
Encryption bool
PeerDiscovery bool
Name string
NickName string
Interface string
Macs *MacCache
Peers *Peers
Routes *Routes
ConnectionMakerStatus
}{version, router.UsingPassword(), router.Ourself.Name.String(), router.Ourself.NickName, fmt.Sprintf("%v", router.Iface), router.Macs, router.Peers, router.Routes, router.ConnectionMaker.Status()})
}{version, router.UsingPassword(), router.PeerDiscovery, router.Ourself.Name.String(), router.Ourself.NickName, fmt.Sprintf("%v", router.Iface), router.Macs, router.Peers, router.Routes, router.ConnectionMaker.Status()})
}
func (cache *MacCache) MarshalJSON() ([]byte, error) {