Encoded strings passed to constant_time_compare as ascii, because it was

throwing errors in OSX. Also added --debug to command line version, and made onionshare server
log errors as well as the GUI.
This commit is contained in:
Micah Lee 2014-07-07 15:53:32 -07:00
parent ad284f98a4
commit 2edde2eb1f
4 changed files with 26 additions and 7 deletions

View file

@ -96,7 +96,7 @@ def main():
args = parser.parse_args()
filename = args.filename
local_only = args.local_only
local_only = bool(args.local_only)
stay_open = bool(args.stay_open)
debug = bool(args.debug)
@ -134,6 +134,7 @@ def main():
else:
webapp.onion_host = local_host
if debug:
onionshare.debug_mode()
webapp.debug_mode()
# run the web app in a new thread