Skip to content

Commit

Permalink
allow tunnel with byoc
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jun 3, 2024
1 parent 2742d5f commit f5af638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,10 @@ func (r *Runner) enableClusterByTunnel(ctx context.Context) {
select {
case addr := <-detectedCh:
log.Infof(Tr("info.tunnel.detected"), addr.host, addr.port)
r.cluster.host, r.cluster.publicPort = addr.host, addr.port
r.cluster.publicPort = addr.port
if !r.cluster.byoc {
r.cluster.host = addr.host
}
strPort := strconv.Itoa((int)(r.getPublicPort()))
if spp, ok := r.listener.(interface{ SetPublicPort(port string) }); ok {
spp.SetPublicPort(strPort)
Expand Down

0 comments on commit f5af638

Please sign in to comment.