Slight reorg of tor-related files

This commit is contained in:
Keith Mukai 2019-11-22 00:02:55 -06:00
parent 5b9d6db3cc
commit 56598d80ea
4 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ Run the server:
```
cd specter-desktop
python3 server.py
python3 src/server.py
```
Run the tests (still very limited):
@ -74,4 +74,4 @@ If your Bitcoin Core is using a default data folder the app should detect it aut
## Make Specter Desktop available externally over Tor
see: [tor/README.md](tor/README.md)
see: [docs/tor.md](docs/tor.md)

View file

@ -499,7 +499,7 @@ if __name__ == '__main__':
# Note: dotenv doesn't convert bools!
if os.getenv('CONNECT_TOR', 'False') == 'True' and os.getenv('TOR_PASSWORD') is not None:
from tor import tor_util
import tor_util
tor_util.run_on_hidden_service(app, port=os.getenv('PORT'), debug=DEBUG, extra_files=extra_files)
else:
app.run(port=os.getenv('PORT'), debug=DEBUG, extra_files=extra_files)