mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-06-16 13:36:08 +00:00
tor auto config
This commit is contained in:
29
src/yggdrasil/config/config.go
Normal file
29
src/yggdrasil/config/config.go
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
7
src/yggdrasil/config/i2p.go
Normal file
7
src/yggdrasil/config/i2p.go
Normal file
@ -0,0 +1,7 @@
|
||||
package config
|
||||
|
||||
type I2PConfig struct {
|
||||
Keyfile string
|
||||
Addr string
|
||||
Enabled bool
|
||||
}
|
11
src/yggdrasil/config/tor.go
Normal file
11
src/yggdrasil/config/tor.go
Normal file
@ -0,0 +1,11 @@
|
||||
package config
|
||||
|
||||
/**
|
||||
*tor specific configuration
|
||||
*/
|
||||
type TorConfig struct {
|
||||
OnionKeyfile string
|
||||
SocksAddr string
|
||||
UseForAll bool
|
||||
Enabled bool
|
||||
}
|
Reference in New Issue
Block a user