mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Append a new line to the localclient entry
This commit is contained in:
parent
4390e14485
commit
535ad73c04
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class AuthManager(component.Component):
|
||||||
from hashlib import sha1 as sha_hash
|
from hashlib import sha1 as sha_hash
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from sha import new as sha_hash
|
from sha import new as sha_hash
|
||||||
open(auth_file, "w").write("localclient:" + sha_hash(str(random.random())).hexdigest())
|
open(auth_file, "w").write("localclient:" + sha_hash(str(random.random())).hexdigest() + "\n")
|
||||||
# Change the permissions on the file so only this user can read/write it
|
# Change the permissions on the file so only this user can read/write it
|
||||||
os.chmod(auth_file, stat.S_IREAD | stat.S_IWRITE)
|
os.chmod(auth_file, stat.S_IREAD | stat.S_IWRITE)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue