bitcoind: tag incoming connections as onion on enforceTor

This commit is contained in:
Erik Arvstedt 2021-01-30 10:47:04 +01:00
parent 8f9ea61d6e
commit 5c09845e6f
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -22,7 +22,7 @@ let
${optionalString (cfg.assumevalid != null) "assumevalid=${cfg.assumevalid}"}
# Connection options
${optionalString cfg.listen "bind=${cfg.address}"}
${optionalString cfg.listen "bind=${cfg.address}${optionalString cfg.enforceTor "=onion"}"}
port=${toString cfg.port}
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
listen=${if cfg.listen then "1" else "0"}