镜像自地址
https://github.com/XTLS/Xray-core.git
已同步 2025-07-14 22:14:14 +00:00
Add DispatchLink
这个提交存在于:
父节点
625cf7361a
当前提交
50e576081e
共有 5 个文件被更改,包括 90 次插入 和 2 次删除
|
@ -56,6 +56,15 @@ func (s *Server) Dispatch(ctx context.Context, dest net.Destination) (*transport
|
|||
return &transport.Link{Reader: downlinkReader, Writer: uplinkWriter}, nil
|
||||
}
|
||||
|
||||
// DispatchLink implements routing.Dispatcher
|
||||
func (s *Server) DispatchLink(ctx context.Context, dest net.Destination, link *transport.Link) error {
|
||||
if dest.Address != muxCoolAddress {
|
||||
return s.dispatcher.DispatchLink(ctx, dest, link)
|
||||
}
|
||||
_, err := NewServerWorker(ctx, s.dispatcher, link)
|
||||
return err
|
||||
}
|
||||
|
||||
// Start implements common.Runnable.
|
||||
func (s *Server) Start() error {
|
||||
return nil
|
||||
|
|
正在加载…
添加表格
添加链接
在新工单中引用