5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-15 03:50:29 +00:00
yggdrasil-go/src/yggdrasil/config/config.go

30 lines
559 B
Go
Raw Normal View History

2018-04-19 14:30:40 +00:00
package config
/**
* This is a very crude wrapper around src/yggdrasil
* It can generate a new config (--genconf)
* It can read a config from stdin (--useconf)
* It can run with an automatic config (--autoconf)
*/
type NodeConfig struct {
Listen string
AdminListen string
Peers []string
BoxPub string
BoxPriv string
SigPub string
SigPriv string
Multicast bool
LinkLocal string
IfName string
IfTAPMode bool
IfMTU int
Net NetConfig
}
type NetConfig struct {
Tor TorConfig
I2P I2PConfig
}