Update StemPortPlugin.py - Patch conservatively
This commit is contained in:
parent
ccf2897a65
commit
92b9397ee2
1 changed files with 6 additions and 5 deletions
|
@ -12,8 +12,10 @@ from Config import config
|
||||||
from Debug import Debug
|
from Debug import Debug
|
||||||
|
|
||||||
from gevent import monkey
|
from gevent import monkey
|
||||||
monkey.patch_all()
|
monkey.patch_time()
|
||||||
print "Patched..."
|
monkey.patch_socket(dns=False)
|
||||||
|
monkey.patch_thread()
|
||||||
|
print "Stem Port Plugin: modules are patched"
|
||||||
|
|
||||||
class PatchedControlPort(ControlPort):
|
class PatchedControlPort(ControlPort):
|
||||||
def _make_socket(self):
|
def _make_socket(self):
|
||||||
|
@ -95,8 +97,7 @@ class TorManagerPlugin(object):
|
||||||
if service.private_key_type != "RSA1024":
|
if service.private_key_type != "RSA1024":
|
||||||
raise Exception("ZeroNet doesn't support crypto " + service.private_key_type)
|
raise Exception("ZeroNet doesn't support crypto " + service.private_key_type)
|
||||||
|
|
||||||
self.log.info("Stem created onion service %s.onion" % service.service_id)
|
self.log.info("Stem created %s.onion (async descriptor publication)" % service.service_id)
|
||||||
self.log.info("It takes a few seconds for this onion service to be recognized by HSDirs.")
|
|
||||||
|
|
||||||
return (service.service_id, service.private_key)
|
return (service.service_id, service.private_key)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue