dperson / torproxy

GNU Affero General Public License v3.0
514 stars 144 forks source link

Custom env variables started with TOR_ prefix with spaces in value processed incorrectly #53

Open erroric opened 3 years ago

erroric commented 3 years ago

Hi! I had bad configuration error on start when trying to set some TOR variables like

AccountingMax 100 GB
AccountingStart month 1 00:00

for example, env variable:

TOR_AccountingStart=month 1 00:00

processed incorrectly inside torproxy.sh bash script, becomes in broken torrc file content:

...
AccountingStart "month"
 1
0 "00:00"
...