s/TORRENT/BITTORRENT
This commit is contained in:
parent
d00db518df
commit
e54b86c6eb
7 changed files with 14 additions and 14 deletions
|
@ -11,8 +11,8 @@ from cachetools import lru_cache
|
|||
from app import app
|
||||
|
||||
|
||||
ANNOUNCE_URL = app.config.get('TORRENT_ANNOUNCE_URL')
|
||||
NAMING_SALT = app.config.get('TORRENT_NAMING_SALT')
|
||||
ANNOUNCE_URL = app.config.get('BITTORRENT_ANNOUNCE_URL')
|
||||
FILENAME_PEPPER = app.config.get('BITTORRENT_FILENAME_PEPPER')
|
||||
REGISTRY_TITLE = app.config.get('REGISTRY_TITLE')
|
||||
JWT_ISSUER = app.config.get('JWT_AUTH_TOKEN_ISSUER')
|
||||
|
||||
|
@ -58,7 +58,7 @@ def public_torrent_filename(blob_uuid):
|
|||
return hashlib.sha256(blob_uuid).hexdigest()
|
||||
|
||||
def per_user_torrent_filename(user_uuid, blob_uuid):
|
||||
return hashlib.sha256(blob_uuid + user_uuid + NAMING_SALT).hexdigest()
|
||||
return hashlib.sha256(blob_uuid + user_uuid + FILENAME_PEPPER).hexdigest()
|
||||
|
||||
|
||||
class PieceHasher(object):
|
||||
|
|
Reference in a new issue