mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
5dfb479bfc
commit
6a653a182c
|
|
@ -303,6 +303,8 @@ def _receive_new_post_process_newblog(self, fields: {},
|
||||||
cookie, calling_domain, False)
|
cookie, calling_domain, False)
|
||||||
write2(self, message_json)
|
write2(self, message_json)
|
||||||
return NEW_POST_SUCCESS
|
return NEW_POST_SUCCESS
|
||||||
|
if debug:
|
||||||
|
print('New post failed on citations')
|
||||||
return NEW_POST_FAILED
|
return NEW_POST_FAILED
|
||||||
if not fields['subject']:
|
if not fields['subject']:
|
||||||
print('WARN: blog posts must have a title')
|
print('WARN: blog posts must have a title')
|
||||||
|
|
@ -384,6 +386,8 @@ def _receive_new_post_process_newblog(self, fields: {},
|
||||||
max_replies,
|
max_replies,
|
||||||
debug)
|
debug)
|
||||||
return NEW_POST_SUCCESS
|
return NEW_POST_SUCCESS
|
||||||
|
if debug:
|
||||||
|
print('Failed to post new blog')
|
||||||
return NEW_POST_FAILED
|
return NEW_POST_FAILED
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1800,6 +1804,8 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
|
||||||
print('DEBUG: receiving POST')
|
print('DEBUG: receiving POST')
|
||||||
|
|
||||||
if ' boundary=' not in headers['Content-Type']:
|
if ' boundary=' not in headers['Content-Type']:
|
||||||
|
if debug:
|
||||||
|
print('No boundary in Content-Type header')
|
||||||
return NEW_POST_FAILED
|
return NEW_POST_FAILED
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
|
|
|
||||||
10
epicyon.py
10
epicyon.py
|
|
@ -1840,7 +1840,7 @@ def _command_options() -> None:
|
||||||
proxy_type = 'tor'
|
proxy_type = 'tor'
|
||||||
elif argb.i2p or domain.endswith('.i2p'):
|
elif argb.i2p or domain.endswith('.i2p'):
|
||||||
proxy_type = 'i2p'
|
proxy_type = 'i2p'
|
||||||
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
|
elif argb.yggdrasil or is_yggdrasil_address(domain):
|
||||||
proxy_type = 'yggdrasil'
|
proxy_type = 'yggdrasil'
|
||||||
elif argb.gnunet:
|
elif argb.gnunet:
|
||||||
proxy_type = 'gnunet'
|
proxy_type = 'gnunet'
|
||||||
|
|
@ -2146,7 +2146,7 @@ def _command_options() -> None:
|
||||||
proxy_type = 'i2p'
|
proxy_type = 'i2p'
|
||||||
if domain.endswith('.i2p'):
|
if domain.endswith('.i2p'):
|
||||||
argb.port = 80
|
argb.port = 80
|
||||||
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
|
elif argb.yggdrasil or is_yggdrasil_address(domain):
|
||||||
proxy_type = 'yggdrasil'
|
proxy_type = 'yggdrasil'
|
||||||
if is_yggdrasil_address(domain):
|
if is_yggdrasil_address(domain):
|
||||||
argb.port = 80
|
argb.port = 80
|
||||||
|
|
@ -2234,7 +2234,7 @@ def _command_options() -> None:
|
||||||
proxy_type = 'i2p'
|
proxy_type = 'i2p'
|
||||||
if domain.endswith('.i2p'):
|
if domain.endswith('.i2p'):
|
||||||
argb.port = 80
|
argb.port = 80
|
||||||
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
|
elif argb.yggdrasil or is_yggdrasil_address(domain):
|
||||||
proxy_type = 'yggdrasil'
|
proxy_type = 'yggdrasil'
|
||||||
if is_yggdrasil_address(domain):
|
if is_yggdrasil_address(domain):
|
||||||
argb.port = 80
|
argb.port = 80
|
||||||
|
|
@ -3036,7 +3036,7 @@ def _command_options() -> None:
|
||||||
http_prefix = 'ipns'
|
http_prefix = 'ipns'
|
||||||
if argb.i2p:
|
if argb.i2p:
|
||||||
http_prefix = 'http'
|
http_prefix = 'http'
|
||||||
if argb.yggdrasil_domain:
|
if argb.yggdrasil:
|
||||||
http_prefix = 'http'
|
http_prefix = 'http'
|
||||||
|
|
||||||
if argb.migrations:
|
if argb.migrations:
|
||||||
|
|
@ -3651,7 +3651,7 @@ def _command_options() -> None:
|
||||||
proxy_type = 'i2p'
|
proxy_type = 'i2p'
|
||||||
if domain.endswith('.i2p'):
|
if domain.endswith('.i2p'):
|
||||||
argb.port = 80
|
argb.port = 80
|
||||||
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
|
elif argb.yggdrasil or is_yggdrasil_address(domain):
|
||||||
proxy_type = 'yggdrasil'
|
proxy_type = 'yggdrasil'
|
||||||
if is_yggdrasil_address(domain):
|
if is_yggdrasil_address(domain):
|
||||||
argb.port = 80
|
argb.port = 80
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue