fix tor dir being too open
This commit is contained in:
parent
8e5152a14e
commit
8a82e76182
@ -13,6 +13,7 @@ import platform # For windows sigkill workaround
|
||||
|
||||
from onionrtypes import BooleanSuccessState
|
||||
import logger
|
||||
import filepaths
|
||||
from .. import getopenport
|
||||
from .. import watchdog
|
||||
from . import customtorrc
|
||||
|
@ -114,6 +114,10 @@ def daemon():
|
||||
if not offline_mode:
|
||||
|
||||
if use_existing_tor:
|
||||
try:
|
||||
os.mkdir(filepaths.tor_hs_loc)
|
||||
except FileExistsError:
|
||||
pass
|
||||
net.socksPort = config.get('tor.existing_socks_port')
|
||||
try:
|
||||
net.myID = create_onion_service(
|
||||
|
@ -28,8 +28,7 @@ def create_dirs():
|
||||
order of the hardcoded list below,
|
||||
then trigger creation of DBs"""
|
||||
gen_dirs = [home, filepaths.block_data_location,
|
||||
filepaths.contacts_location, filepaths.export_location,
|
||||
filepaths.tor_hs_loc]
|
||||
filepaths.contacts_location, filepaths.export_location]
|
||||
for path in gen_dirs:
|
||||
if not os.path.exists(path):
|
||||
os.mkdir(path)
|
||||
|
@ -1 +1 @@
|
||||
1580633234
|
||||
1580635315
|
Loading…
Reference in New Issue
Block a user