Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
2377d4fa
Commit
2377d4fa
authored
5 years ago
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add an option for never expire
parent
127b0c6f
master
athletic-check
database
dependabot/npm_and_yarn/ws-3.3.1
github/fork/Helicosaurus/patch-1
improves
mycard-improve
neos
neos_dev
patch-mdpro3-deck
server-merge-1353
travis
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ygopro-server.coffee
ygopro-server.coffee
+1
-1
ygopro-server.js
ygopro-server.js
+1
-1
No files found.
ygopro-server.coffee
View file @
2377d4fa
...
...
@@ -1228,7 +1228,7 @@ class Room
"replay_buffer"
,
replay_buffer
,
"player_names"
,
player_names
,
"date_time"
,
date_time
)
if
!
log_rep_id
if
!
log_rep_id
and
!
settings
.
modules
.
cloud_replay
.
never_expire
redisdb
.
expire
(
"replay:"
+
replay_id
,
60
*
60
*
24
)
recorded_ip
=
[]
_
.
each
player_ips
,
(
player_ip
)
->
...
...
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
2377d4fa
...
...
@@ -1570,7 +1570,7 @@
replay_buffer = replay_buffer.toString('binary');
date_time = moment().format('YYYY-MM-DD HH:mm:ss');
redisdb.hmset("replay:" + replay_id, "replay_id", replay_id, "replay_buffer", replay_buffer, "player_names", player_names, "date_time", date_time);
if
(
!
log_rep_id
)
{
if (!log_rep_id
&& !settings.modules.cloud_replay.never_expire
) {
redisdb.expire("replay:" + replay_id, 60 * 60 * 24);
}
recorded_ip = [];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment