mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
Add additional check for old config file
This commit is contained in:
parent
097664e890
commit
8bd49aef7a
@ -96,7 +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:
|
if DEFAULT_HOST + ":" + DEFAULT_PORT in self.config.config or \
|
||||||
|
"localhost:58846" in self.config.config:
|
||||||
# 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…
x
Reference in New Issue
Block a user