add kcp dialer

This commit is contained in:
ginuerzh
2021-12-16 19:03:56 +08:00
parent 5bd3c25c65
commit a52cd9a4c2
19 changed files with 395 additions and 78 deletions

View File

@ -32,8 +32,10 @@ func (c *Chain) GetRouteFor(network, address string) (r *Route) {
}
if node.transport.IsMultiplex() {
tr := node.transport.Copy().WithRoute(r)
node = node.Copy().WithTransport(tr)
tr := node.transport.Copy().
WithRoute(r)
node = node.Copy().
WithTransport(tr)
r = &Route{}
}