Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
683707c3
Unverified
Commit
683707c3
authored
May 06, 2025
by
Adarsh Shirawalmath
Committed by
GitHub
May 06, 2025
Browse files
[Security][Bug] Prevent binding to all TCP interfaces (#5752)
parent
a68ed766
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/distributed/device_communicators/shm_broadcast.py
...ang/srt/distributed/device_communicators/shm_broadcast.py
+2
-1
No files found.
python/sglang/srt/distributed/device_communicators/shm_broadcast.py
View file @
683707c3
...
...
@@ -225,7 +225,8 @@ class MessageQueue:
remote_subscribe_port
=
get_open_port
()
if
is_valid_ipv6_address
(
connect_ip
):
self
.
remote_socket
.
setsockopt
(
IPV6
,
1
)
socket_addr
=
f
"tcp://*:
{
remote_subscribe_port
}
"
connect_ip
=
f
"[
{
connect_ip
}
]"
socket_addr
=
f
"tcp://
{
connect_ip
}
:
{
remote_subscribe_port
}
"
self
.
remote_socket
.
bind
(
socket_addr
)
else
:
...
...
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