Skip to content

Commit

Permalink
#3376 expose quic / webtransport sockets via mdns
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 19, 2024
1 parent bde4c3c commit e983e1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions xpra/net/mdns/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def mdns_publish(display_name: str, listen_on, text_dict=None) -> Sequence:
service_type = {
"rfb": RFB_MDNS_TYPE,
"quic": XPRA_UDP_MDNS_TYPE,
"webtransport": XPRA_UDP_MDNS_TYPE,
}.get(mode, XPRA_TCP_MDNS_TYPE)
index = 0
aps = []
Expand Down
2 changes: 2 additions & 0 deletions xpra/server/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,8 @@ def get_mdns_socktypes(self, socktype: str, options: dict[str, str]) -> Sequence
if socktype in ("vsock", "named-pipe"):
# cannot be accessed remotely
return ()
if socktype == "quic":
return ("quic", "webtransport")
socktypes = [socktype]
if socktype == "tcp":
for tosocktype in ("ssl", "ws", "wss", "ssh", "rfb"):
Expand Down

0 comments on commit e983e1a

Please sign in to comment.