Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
srvpro2
Commits
c399f6f0
Commit
c399f6f0
authored
Feb 16, 2026
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
95d33be0
Pipeline
#43248
failed with stages
in 95 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
src/windbot/reverse-ws-client.ts
src/windbot/reverse-ws-client.ts
+1
-2
src/windbot/windbot-provider.ts
src/windbot/windbot-provider.ts
+1
-26
No files found.
src/windbot/reverse-ws-client.ts
View file @
c399f6f0
...
...
@@ -8,12 +8,11 @@ export class ReverseWsClient extends Client {
constructor
(
ctx
:
Context
,
private
sock
:
WebSocket
,
private
endpointIp
:
string
,
)
{
super
(
ctx
);
this
.
isInternal
=
true
;
this
.
isLocal
=
true
;
this
.
ip
=
endpointIp
;
this
.
ip
=
'
255.255.255.255
'
;
}
protected
_send
(
data
:
Buffer
):
Promise
<
void
>
{
...
...
src/windbot/windbot-provider.ts
View file @
c399f6f0
...
...
@@ -217,30 +217,6 @@ export class WindBotProvider {
return
url
.
protocol
===
'
ws:
'
||
url
.
protocol
===
'
wss:
'
;
}
private
async
resolveEndpointIp
(
url
:
URL
)
{
const
hostname
=
url
.
hostname
;
if
(
!
hostname
)
{
return
''
;
}
if
(
isIP
(
hostname
))
{
return
hostname
;
}
try
{
const
resolved
=
await
dns
.
lookup
(
hostname
);
return
resolved
.
address
;
}
catch
(
error
)
{
this
.
logger
.
warn
(
{
hostname
,
endpoint
:
url
.
toString
(),
error
:
(
error
as
Error
).
toString
(),
},
'
Failed to resolve reverse ws endpoint ip
'
,
);
return
hostname
;
}
}
private
async
createReverseWsConnection
(
url
:
URL
)
{
return
new
Promise
<
WebSocket
>
((
resolve
,
reject
)
=>
{
const
sock
=
new
WebSocket
(
url
.
toString
());
...
...
@@ -268,9 +244,8 @@ export class WindBotProvider {
url
:
URL
,
)
{
try
{
const
endpointIp
=
await
this
.
resolveEndpointIp
(
url
);
const
sock
=
await
this
.
createReverseWsConnection
(
url
);
const
client
=
new
ReverseWsClient
(
this
.
ctx
,
sock
,
endpointIp
);
const
client
=
new
ReverseWsClient
(
this
.
ctx
,
sock
);
this
.
clientHandler
.
handleClient
(
client
).
catch
((
error
)
=>
{
this
.
logger
.
warn
(
{
...
...
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