config: add new option to the tor config for stream isolation
This commit is contained in:
parent
2eb9059cf7
commit
abcf822bf9
@ -136,6 +136,7 @@ type autoPilotConfig struct {
|
|||||||
type torConfig struct {
|
type torConfig struct {
|
||||||
Socks string `long:"socks" description:"The port that Tor's exposed SOCKS5 proxy is listening on. Using Tor allows outbound-only connections (listening will be disabled) -- NOTE port must be between 1024 and 65535"`
|
Socks string `long:"socks" description:"The port that Tor's exposed SOCKS5 proxy is listening on. Using Tor allows outbound-only connections (listening will be disabled) -- NOTE port must be between 1024 and 65535"`
|
||||||
DNS string `long:"dns" description:"The DNS server as IP:PORT that Tor will use for SRV queries - NOTE must have TCP resolution enabled"`
|
DNS string `long:"dns" description:"The DNS server as IP:PORT that Tor will use for SRV queries - NOTE must have TCP resolution enabled"`
|
||||||
|
StreamIsolation bool `long:"streamisolation" description:"Enable Tor stream isolation by randomizing user credentials for each connection."`
|
||||||
}
|
}
|
||||||
|
|
||||||
// config defines the configuration options for lnd.
|
// config defines the configuration options for lnd.
|
||||||
@ -327,6 +328,7 @@ func loadConfig() (*config, error) {
|
|||||||
cfg.net = &torsvc.TorProxyNet{
|
cfg.net = &torsvc.TorProxyNet{
|
||||||
TorDNS: cfg.Tor.DNS,
|
TorDNS: cfg.Tor.DNS,
|
||||||
TorSocks: cfg.Tor.Socks,
|
TorSocks: cfg.Tor.Socks,
|
||||||
|
StreamIsolation: cfg.Tor.StreamIsolation,
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we are using Tor, since we only want connections routed
|
// If we are using Tor, since we only want connections routed
|
||||||
|
Loading…
Reference in New Issue
Block a user