From e93865f7de5c4a0eb5631a811327717398e8951d Mon Sep 17 00:00:00 2001 From: Hendrik Hofstadt Date: Fri, 8 Jun 2018 19:13:39 +0200 Subject: [PATCH] escape paths in config template --- config/toml.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/toml.go b/config/toml.go index 69356ff66..7ed3e971d 100644 --- a/config/toml.go +++ b/config/toml.go @@ -81,7 +81,7 @@ fast_sync = {{ .BaseConfig.FastSync }} db_backend = "{{ .BaseConfig.DBBackend }}" # Database directory -db_path = "{{ .BaseConfig.DBPath }}" +db_path = "{{ js .BaseConfig.DBPath }}" # Output level for logging, including package level options log_level = "{{ .BaseConfig.LogLevel }}" @@ -89,13 +89,13 @@ log_level = "{{ .BaseConfig.LogLevel }}" ##### additional base config options ##### # Path to the JSON file containing the initial validator set and other meta data -genesis_file = "{{ .BaseConfig.Genesis }}" +genesis_file = "{{ js .BaseConfig.Genesis }}" # Path to the JSON file containing the private key to use as a validator in the consensus protocol -priv_validator_file = "{{ .BaseConfig.PrivValidator }}" +priv_validator_file = "{{ js .BaseConfig.PrivValidator }}" # Path to the JSON file containing the private key to use for node authentication in the p2p protocol -node_key_file = "{{ .BaseConfig.NodeKey}}" +node_key_file = "{{ js .BaseConfig.NodeKey}}" # Mechanism to connect to the ABCI application: socket | grpc abci = "{{ .BaseConfig.ABCI }}" @@ -136,7 +136,7 @@ seeds = "{{ .P2P.Seeds }}" persistent_peers = "{{ .P2P.PersistentPeers }}" # Path to address book -addr_book_file = "{{ .P2P.AddrBook }}" +addr_book_file = "{{ js .P2P.AddrBook }}" # Set true for strict address routability rules addr_book_strict = {{ .P2P.AddrBookStrict }} @@ -174,7 +174,7 @@ private_peer_ids = "{{ .P2P.PrivatePeerIDs }}" recheck = {{ .Mempool.Recheck }} recheck_empty = {{ .Mempool.RecheckEmpty }} broadcast = {{ .Mempool.Broadcast }} -wal_dir = "{{ .Mempool.WalPath }}" +wal_dir = "{{ js .Mempool.WalPath }}" # size of the mempool size = {{ .Mempool.Size }} @@ -185,7 +185,7 @@ cache_size = {{ .Mempool.CacheSize }} ##### consensus configuration options ##### [consensus] -wal_file = "{{ .Consensus.WalPath }}" +wal_file = "{{ js .Consensus.WalPath }}" # All timeouts are in milliseconds timeout_propose = {{ .Consensus.TimeoutPropose }}