Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
8474c792
Commit
8474c792
authored
1 year ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Complete the switch to use system.temp_dir instead of temp_path for WSS
See issue
#648
for details.
parent
c5dd98bf
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xtrn/wttr.in/locator.js
+1
-1
1 addition, 1 deletion
xtrn/wttr.in/locator.js
xtrn/wttr.in/wttr-lib.js
+1
-1
1 addition, 1 deletion
xtrn/wttr.in/wttr-lib.js
with
2 additions
and
2 deletions
xtrn/wttr.in/locator.js
+
1
−
1
View file @
8474c792
...
...
@@ -12,7 +12,7 @@ function getAddress() {
*
* There's a very slim chance of false positives here, but whatever.
*/
const
f
=
new
File
(
system
.
temp_
path
+
'
sbbs-ws-
'
+
client
.
socket
.
remote_port
+
'
.ip
'
);
const
f
=
new
File
(
system
.
temp_
dir
+
'
sbbs-ws-
'
+
client
.
socket
.
remote_port
+
'
.ip
'
);
if
(
!
f
.
exists
)
return
;
if
(
f
.
date
<
client
.
connect_time
)
return
;
// Avoid stale ws ip files
if
(
f
.
date
-
client
.
connect_time
>
5
)
return
;
// Avoid ws ip files probably not belonging to this user (5 seconds arbitrary)
...
...
This diff is collapsed.
Click to expand it.
xtrn/wttr.in/wttr-lib.js
+
1
−
1
View file @
8474c792
...
...
@@ -41,7 +41,7 @@ function uReplace(str) {
function
getCacheName
(
url
,
addr
)
{
const
cfn
=
format
(
'
wttr.in_%s%s.ans
'
,
url
,
addr
||
''
).
replace
(
/
[^
0-9a-z
\.]
+/ig
,
'
_
'
);
return
system
.
temp_
path
+
cfn
;
return
system
.
temp_
dir
+
cfn
;
}
function
readCache
(
url
,
addr
,
ttl
)
{
...
...
This diff is collapsed.
Click to expand it.
echicken
@echicken
mentioned in issue
#648 (closed)
·
1 year ago
mentioned in issue
#648 (closed)
mentioned in issue #648
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment