Skip to content

Commit

Permalink
add newly created agent endpoints to the map
Browse files Browse the repository at this point in the history
Signed-off-by: Alice-Lilith <[email protected]>
  • Loading branch information
Alice-Lilith committed Jan 16, 2025
1 parent 3ef67b6 commit e226689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tunneldriver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ func (td *TunnelDriver) CreateAgentEndpoint(ctx context.Context, name string, sp
if err != nil {
return err
}
td.agentEndpoints.Add(name, tun)
td.tunnels[name] = tun

upstreamPort, err := strconv.Atoi(upstreamURL.Port())
if err != nil {
Expand Down

0 comments on commit e226689

Please sign in to comment.