mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Fix check for old version
This commit is contained in:
parent
8bd49aef7a
commit
feeb1469fa
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ class ConnectionManager(component.Component):
|
||||||
self.config = ConfigManager("hostlist.conf", DEFAULT_CONFIG)
|
self.config = ConfigManager("hostlist.conf", DEFAULT_CONFIG)
|
||||||
|
|
||||||
# Test to see if it's an old config
|
# Test to see if it's an old config
|
||||||
if DEFAULT_HOST + ":" + DEFAULT_PORT in self.config.config or \
|
if DEFAULT_HOST + ":" + DEFAULT_PORT in self.config.config["hosts"] or \
|
||||||
"localhost:58846" in self.config.config:
|
"localhost:58846" in self.config.config["hosts"]:
|
||||||
# This is likely an older 1.0 config, so lets mv it and start fresh
|
# This is likely an older 1.0 config, so lets mv it and start fresh
|
||||||
self.config = None
|
self.config = None
|
||||||
hostlist_conf = deluge.configmanager.get_config_dir("hostlist.conf")
|
hostlist_conf = deluge.configmanager.get_config_dir("hostlist.conf")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue