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
6ee49a5d
Commit
6ee49a5d
authored
2 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Create ip temp file immediately on connect.
parent
1c29f741
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/websocketservice.js
+6
-6
6 additions, 6 deletions
exec/websocketservice.js
with
6 additions
and
6 deletions
exec/websocketservice.js
+
6
−
6
View file @
6ee49a5d
...
...
@@ -85,6 +85,12 @@ try {
log
(
LOG_DEBUG
,
"
Connecting to
"
+
TargetHostname
+
"
:
"
+
TargetPort
);
if
(
FServerSocket
.
connect
(
TargetHostname
,
TargetPort
))
{
ipFile
=
new
File
(
system
.
temp_path
+
'
sbbs-ws-
'
+
FServerSocket
.
local_port
+
'
.ip
'
);
if
(
ipFile
.
open
(
'
w
'
))
{
ipFile
.
write
(
client
.
ip_address
);
ipFile
.
close
();
}
// Variables we'll use in the loop
var
DoYield
=
true
;
var
ClientData
=
[];
...
...
@@ -104,12 +110,6 @@ try {
FServerSocket
.
send
(
hapstr
);
}
ipFile
=
new
File
(
system
.
temp_path
+
'
sbbs-ws-
'
+
FServerSocket
.
local_port
+
'
.ip
'
);
if
(
ipFile
.
open
(
'
w
'
))
{
ipFile
.
write
(
client
.
ip_address
);
ipFile
.
close
();
}
// Loop while we're still connected on both ends
while
((
client
.
socket
.
is_connected
)
&&
(
FServerSocket
.
is_connected
))
{
// Should we yield or not (default true, but disable if we had line activity)
...
...
This diff is collapsed.
Click to expand it.
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