relay: fix routing for http traffic from entrypoint

This commit is contained in:
ginuerzh
2023-02-12 20:42:46 +08:00
parent 6f9f5ce6ab
commit b8027864a3
3 changed files with 125 additions and 3 deletions

View File

@ -176,7 +176,7 @@ func parseTunnelID(s string) (tid relay.TunnelID) {
return relay.NewTunnelID(uuid[:])
}
func getTunnelConn(network string, pool *ConnectorPool, tid relay.TunnelID, retry int, log logger.Logger) (conn net.Conn, err error) {
func getTunnelConn(network string, pool *ConnectorPool, tid relay.TunnelID, retry int, log logger.Logger) (conn net.Conn, cid relay.ConnectorID, err error) {
if retry <= 0 {
retry = 1
}
@ -192,6 +192,7 @@ func getTunnelConn(network string, pool *ConnectorPool, tid relay.TunnelID, retr
log.Error(err)
continue
}
cid = c.id
break
}