mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-30 13:35:19 +00:00
remove hard coded tor config options
This commit is contained in:
parent
7756891510
commit
fe13fea1e5
@ -3,7 +3,6 @@ package config
|
|||||||
// TorConfig is the configuration structure for Tor Proxy related values
|
// TorConfig is the configuration structure for Tor Proxy related values
|
||||||
type TorConfig struct {
|
type TorConfig struct {
|
||||||
OnionKeyfile string // hidden service private key for ADD_ONION (currently unimplemented)
|
OnionKeyfile string // hidden service private key for ADD_ONION (currently unimplemented)
|
||||||
SocksAddr string // tor socks address
|
ControlAddr string // tor control port address
|
||||||
UseForAll bool // use tor proxy for all connections?
|
Enabled bool
|
||||||
Enabled bool // use tor at all ?
|
|
||||||
}
|
}
|
||||||
|
@ -103,9 +103,6 @@ func generateConfig(isAutoconf bool) *nodeConfig {
|
|||||||
cfg.IfMTU = core.DEBUG_GetTUNDefaultIfMTU()
|
cfg.IfMTU = core.DEBUG_GetTUNDefaultIfMTU()
|
||||||
cfg.IfTAPMode = core.DEBUG_GetTUNDefaultIfTAPMode()
|
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
|
return &cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user