mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-15 03:50:29 +00:00
30 lines
559 B
Go
30 lines
559 B
Go
|
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
|
||
|
}
|