keys-on-cli
quadrismegistus 4 years ago
parent 188b0d0e50
commit bc9b1dc90f

@ -7,7 +7,7 @@ log=print
def komrade_request(url,allow_clearnet = ALLOW_CLEARNET):
if '.onion' in url or not allow_clearnet:
return tor_request(url)
return requests.get(url,timeout=60)
return requests.get(url,timeout=600)
def tor_request(url):
return tor_request_in_python(url)

@ -25,7 +25,7 @@ class TheTelephone(Operator):
msg_b64 = b64encode(msg_b_sealed)
msg_b64_str = msg_b64.decode()
msg_b64_str_esc = msg_b64_str.replace('/','_')
self.log('msg_b64_str_esc',type(msg_b64_str_esc),msg_b64_str_esc)
# self.log('msg_b64_str_esc',type(msg_b64_str_esc),msg_b64_str_esc)
# dial the operator
URL = OPERATOR_API_URL + msg_b64_str_esc + '/'
@ -37,7 +37,7 @@ class TheTelephone(Operator):
# response back from Operator!
resp_msg_b64_str = phonecall.text
self.log('resp_msg_b64_str',resp_msg_b64_str)
# self.log('resp_msg_b64_str',resp_msg_b64_str)
resp_msg_b64 = resp_msg_b64_str.encode()
resp_msg_b = b64decode(resp_msg_b64)

Loading…
Cancel
Save