5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-25 23:01:38 +00:00

remove hard coded tor config options

This commit is contained in:
Jeff Becker 2018-04-26 10:26:10 -04:00
parent 7756891510
commit fe13fea1e5
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,6 @@ package config
// TorConfig is the configuration structure for Tor Proxy related values
type TorConfig struct {
OnionKeyfile string // hidden service private key for ADD_ONION (currently unimplemented)
SocksAddr string // tor socks address
UseForAll bool // use tor proxy for all connections?
Enabled bool // use tor at all ?
ControlAddr string // tor control port address
Enabled bool
}

View File

@ -103,9 +103,6 @@ func generateConfig(isAutoconf bool) *nodeConfig {
cfg.IfMTU = core.DEBUG_GetTUNDefaultIfMTU()
cfg.IfTAPMode = core.DEBUG_GetTUNDefaultIfTAPMode()
cfg.Net.Tor.SocksAddr = "127.0.0.1:9050"
cfg.Net.Tor.UseForAll = false
cfg.Net.Tor.Enabled = true
return &cfg
}