Enhance transports

* Support IPv6 schema
* Add transport integration tests
* Add UNIX socket server
This commit is contained in:
Josh Wu
2025-08-18 16:12:48 +08:00
parent 3b8dd6f3cf
commit bb2aa8229d
10 changed files with 238 additions and 45 deletions

View File

@@ -51,8 +51,8 @@ async def open_udp_transport(spec: str) -> Transport:
self.transport.close()
local, remote = spec.split(',')
local_host, local_port = local.split(':')
remote_host, remote_port = remote.split(':')
local_host, local_port = local.rsplit(':', maxsplit=1)
remote_host, remote_port = remote.rsplit(':', maxsplit=1)
(
udp_transport,
packet_source,