Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Program Popularity Measurer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Program Popularity Measurer
Merge requests
!1
fix bytes identifier
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix bytes identifier
ip-hash-fix
into
master
Overview
0
Commits
2
Pipelines
2
Changes
2
Merged
fix bytes identifier
Alexa Valentová
requested to merge
ip-hash-fix
into
master
Jul 5, 2022
Overview
0
Commits
2
Pipelines
2
Changes
2
IP cpaná do hashovacího algoritmu nebyla v byte formě, opraveno
0
0
Merge request reports
Compare
master
version 1
5bd0b365
Jul 5, 2022
master (base)
and
latest version
latest version
aa825cd0
2 commits,
Jul 5, 2022
version 1
5bd0b365
1 commit,
Jul 5, 2022
2 files
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
measurer/utils/__init__.py
+
1
−
1
View file @ aa825cd0
Edit in single-file editor
Open in Web IDE
Show full file
@@ -36,7 +36,7 @@ def get_ip_hash() -> str:
return
base64
.
b64encode
(
argon2
.
low_level
.
hash_secret_raw
(
# Support reverse proxy
flask
.
request
.
headers
.
get
(
"
X-Forwarded-For
"
,
flask
.
request
.
remote_addr
),
flask
.
request
.
headers
.
get
(
"
X-Forwarded-For
"
,
flask
.
request
.
remote_addr
)
.
encode
(
"
utf-8
"
)
,
salt
=
flask
.
current_app
.
config
[
"
IDENTIFIER_HASH_PEPPER
"
].
encode
(
"
utf-8
"
),
time_cost
=
flask
.
current_app
.
config
[
"
IDENTIFIER_HASH_TIME_COST
"
],
Loading