diff --git a/plugins/Stats/StatsPlugin.py b/plugins/Stats/StatsPlugin.py index ace7ac05..b2932bde 100644 --- a/plugins/Stats/StatsPlugin.py +++ b/plugins/Stats/StatsPlugin.py @@ -732,8 +732,8 @@ class UiRequestPlugin(object): yield "." assert CryptHash.sha512sum(open("%s/test.tar.bz2" % config.data_dir)) == "182c0a3a8da7e6e2eb3bf9c661caeec8a91b12bcf389bd3facdbc5a8f6645199", "Invalid hash" - if os.path.isfile("%s/test.tar.bz2a" % config.data_dir): - os.unlink("%s/test.tar.bz2a" % config.data_dir) + if os.path.isfile("%s/test.tar.bz2" % config.data_dir): + os.unlink("%s/test.tar.bz2" % config.data_dir) yield "
Done. Total: %.2fs" % (time.time() - t) diff --git a/src/Config.py b/src/Config.py index 1e07306c..fafc956f 100644 --- a/src/Config.py +++ b/src/Config.py @@ -10,7 +10,7 @@ class Config(object): def __init__(self, argv): self.version = "0.5.4" - self.rev = 2048 + self.rev = 2049 self.argv = argv self.action = None self.config_file = "zeronet.conf" @@ -191,6 +191,7 @@ class Config(object): self.parser.add_argument('--disable_udp', help='Disable UDP connections', action='store_true') self.parser.add_argument('--proxy', help='Socks proxy address', metavar='ip:port') + self.parser.add_argument('--bind', help='Bind outgoing sockets to this address', metavar='ip') self.parser.add_argument('--ip_external', help='Set reported external ip (tested on start if None)', metavar='ip') self.parser.add_argument('--trackers', help='Bootstraping torrent trackers', default=trackers, metavar='protocol://address', nargs='*') self.parser.add_argument('--trackers_file', help='Load torrent trackers dynamically from a file', default=False, metavar='path')