mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
tor auto config
This commit is contained in:
parent
48ced483d6
commit
3c4fee0492
7 changed files with 186 additions and 56 deletions
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue