fix Windows path to prevent Tor control port from breaking

This commit is contained in:
Micah Lee 2014-12-09 19:06:59 -08:00
parent 21e2546435
commit 027d77416e

View File

@ -148,6 +148,8 @@ class OnionShare(object):
self.controller.authenticate()
# set up hidden service
if helpers.get_platform() == 'Windows':
self.hidserv_dir = self.hidserv_dir.replace('\\', '/')
hsdic = self.controller.get_conf_map('HiddenServiceOptions') or {
'HiddenServiceDir': [], 'HiddenServicePort': []
}