now kill tor more often when shutting down, use own tor data directory, and check for api crash to stop daemon
This commit is contained in:
parent
c0e08eae79
commit
0ce3c7d940
3 changed files with 27 additions and 3 deletions
|
@ -550,6 +550,11 @@ class Onionr:
|
|||
return
|
||||
|
||||
def get_hostname(self):
|
||||
return open('./data/hs/hostname', 'r').read()
|
||||
retVal = ''
|
||||
try:
|
||||
with open('./data/hs/hostname', 'r') as hostname:
|
||||
retval = retVal.read()
|
||||
except FileNotFoundError:
|
||||
return retVal
|
||||
|
||||
Onionr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue