tor auto config

This commit is contained in:
Jeff Becker 2018-04-19 10:30:40 -04:00
parent 48ced483d6
commit 3c4fee0492
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
7 changed files with 186 additions and 56 deletions

View 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
}

View file

@ -0,0 +1,7 @@
package config
type I2PConfig struct {
Keyfile string
Addr string
Enabled bool
}

View file

@ -0,0 +1,11 @@
package config
/**
*tor specific configuration
*/
type TorConfig struct {
OnionKeyfile string
SocksAddr string
UseForAll bool
Enabled bool
}