Skip to content

Commit 0b9eba6

Browse files
committed
Apply minor rewrites
1 parent 613f0f5 commit 0b9eba6

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tor2web/t2w.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,6 @@ def process(self):
901901
defer.returnValue(
902902
flattenString(self, antanistaticmap[staticpath]).addCallback(self.writeContent))
903903

904-
905-
906904
except Exception:
907905
pass
908906

@@ -1143,7 +1141,6 @@ def allContentReceived(self):
11431141
self._savedTimeOut = self.setTimeout(None)
11441142

11451143

1146-
11471144
class T2WProxyFactory(http.HTTPFactory):
11481145
protocol = T2WProxy
11491146

@@ -1451,6 +1448,7 @@ def umask(mask):
14511448
ipv4 = None
14521449
else:
14531450
ipv4 = config.listen_ipv4
1451+
14541452
ipv6 = config.listen_ipv6
14551453

14561454
# ##############################################################################
@@ -1475,17 +1473,15 @@ def umask(mask):
14751473
if os.path.exists(sys_static_dir):
14761474
for root, dirs, files in os.walk(os.path.join(sys_static_dir)):
14771475
for basename in files:
1478-
filename = os.path.join(root, basename)
1479-
f = FilePath(filename)
1476+
f = FilePath(os.path.join(root, basename))
14801477
antanistaticmap[filename.replace(sys_static_dir, "")] = f.getContent()
14811478

14821479
# user defined static files
14831480
usr_static_dir = os.path.join(config.datadir, "static/")
14841481
if usr_static_dir != sys_static_dir and os.path.exists(usr_static_dir):
14851482
for root, dirs, files in os.walk(os.path.join(usr_static_dir)):
14861483
for basename in files:
1487-
filename = os.path.join(root, basename)
1488-
f = FilePath(filename)
1484+
f = FilePath(os.path.join(root, basename))
14891485
antanistaticmap[filename.replace(usr_static_dir, "")] = f.getContent()
14901486
# ##############################################################################
14911487

tor2web/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self):
7676
self.__dict__['sockretryautomatically'] = True
7777
self.__dict__['cipher_list'] = 'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:' \
7878
'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:' \
79-
'ECDHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA:'
79+
'ECDHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA'
8080
self.__dict__['mode'] = 'BLOCKLIST'
8181
self.__dict__['onion'] = None
8282
self.__dict__['blockhotlinking'] = True

0 commit comments

Comments
 (0)