Przeglądaj źródła

bin/darkfid: add socks_url to darkfid's config

ghassmo 4 lat temu
rodzic
commit
db39cc4948
2 zmienionych plików z 6 dodań i 0 usunięć
  1. 4 0
      bin/darkfid/darkfid_config.toml
  2. 2 0
      bin/darkfid/src/main.rs

+ 4 - 0
bin/darkfid/darkfid_config.toml

@@ -17,6 +17,10 @@ wallet_password = "TEST_PASSWORD"
 # openssl pkcs12 -export -out identity.pfx -inkey key.pem -in cert.pem -certfile chain_certs.pem
 tls_identity_path = "~/.config/darkfi/darkfid_identity.pfx"
 
+# Socks5 server url. eg. `127.0.0.1:9050`
+[socks_url]
+url = "127.0.0.1:9050"
+
 # The address where darkfid should bind its RPC socket
 [rpc_listener_url]
 url="127.0.0.1:8000"

+ 2 - 0
bin/darkfid/src/main.rs

@@ -62,6 +62,8 @@ pub struct DarkfidConfig {
     pub wallet_password: String,
     /// Path to DER-formatted PKCS#12 archive. (used only with tls listener url)
     pub tls_identity_path: String,
+    /// Socks5 server url. eg. `127.0.0.1:9050`
+    pub socks_url: UrlConfig,
     /// The address where darkfid should bind its RPC socket
     pub rpc_listener_url: UrlConfig,
     /// The endpoint to a gatewayd protocol API