mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix being able to connect to a local daemon from another user account
This commit is contained in:
parent
cfa479ba3e
commit
09f9c042e4
2 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,7 @@ Deluge 1.1.1 - (In Development)
|
|||
* Fix the -l, --logfile option
|
||||
* Fix #729 tracker icons not being saved in the correct location
|
||||
* Add support for more tracker icons
|
||||
* Fix being able to connect to a local daemon from another user account
|
||||
|
||||
Deluge 1.1.0 - "Time gas!" (10 January 2009)
|
||||
Core:
|
||||
|
|
|
@ -127,6 +127,12 @@ def get_localhost_auth_uri(uri):
|
|||
:param uri: the uri to add the authentication info to
|
||||
:returns: a localhost uri containing authentication information or None if the information is not available
|
||||
"""
|
||||
u = urlparse.urlsplit(uri)
|
||||
# If there is already a username in this URI, let's just return it since
|
||||
# the user has provided credentials.
|
||||
if u.username:
|
||||
return uri
|
||||
|
||||
auth_file = deluge.configmanager.get_config_dir("auth")
|
||||
if os.path.exists(auth_file):
|
||||
u = urlparse.urlsplit(uri)
|
||||
|
|
Loading…
Add table
Reference in a new issue