github.com/decred/dcrlnd@v0.7.6/lncfg/tor.go (about)

     1  package lncfg
     2  
     3  // Tor holds the configuration options for the daemon's connection to tor.
     4  type Tor struct {
     5  	Active                      bool   `long:"active" description:"Allow outbound and inbound connections to be routed through Tor"`
     6  	SOCKS                       string `long:"socks" description:"The host:port that Tor's exposed SOCKS5 proxy is listening on"`
     7  	DNS                         string `long:"dns" description:"The DNS server as host:port that Tor will use for SRV queries - NOTE must have TCP resolution enabled"`
     8  	StreamIsolation             bool   `long:"streamisolation" description:"Enable Tor stream isolation by randomizing user credentials for each connection."`
     9  	SkipProxyForClearNetTargets bool   `long:"skip-proxy-for-clearnet-targets" description:"Allow the node to establish direct connections to services not running behind Tor."`
    10  	Control                     string `long:"control" description:"The host:port that Tor is listening on for Tor control connections"`
    11  	TargetIPAddress             string `long:"targetipaddress" description:"IP address that Tor should use as the target of the hidden service"`
    12  	Password                    string `long:"password" description:"The password used to arrive at the HashedControlPassword for the control port. If provided, the HASHEDPASSWORD authentication method will be used instead of the SAFECOOKIE one."`
    13  	V2                          bool   `long:"v2" description:"Automatically set up a v2 onion service to listen for inbound connections"`
    14  	V3                          bool   `long:"v3" description:"Automatically set up a v3 onion service to listen for inbound connections"`
    15  	PrivateKeyPath              string `long:"privatekeypath" description:"The path to the private key of the onion service being created"`
    16  	WatchtowerKeyPath           string `long:"watchtowerkeypath" description:"The path to the private key of the watchtower onion service being created"`
    17  }