Skip to content
Snippets Groups Projects
parameters.go 574 B
Newer Older
package autopeering
	flag "github.com/spf13/pflag"
capossele's avatar
capossele committed
	CFG_ADDRESS     = "autopeering.address"
	CFG_ENTRY_NODES = "autopeering.entryNodes"
	CFG_PORT        = "autopeering.port"
	CFG_SELECTION   = "autopeering.selection"

func init() {
	flag.String(CFG_ADDRESS, "0.0.0.0", "address to bind for incoming peering requests")
capossele's avatar
capossele committed
	flag.String(CFG_ENTRY_NODES, "pub_Key@127.0.0.1:14626", "list of trusted entry nodes for auto peering")
	flag.Int(CFG_PORT, 14626, "udp port for incoming peering requests")
capossele's avatar
capossele committed
	flag.Bool(CFG_SELECTION, true, "enable peer selection")