Skip to content

Commit

Permalink
fix(cli): use random git credentials helper port during workspace up;…
Browse files Browse the repository at this point in the history
… fixed port during ssh connection
  • Loading branch information
pascalbreuninger committed Jun 25, 2024
1 parent acc118b commit bd70d5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/credentials/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import (

"github.com/loft-sh/devpod/pkg/agent/tunnel"
devpodhttp "github.com/loft-sh/devpod/pkg/http"
portpkg "github.com/loft-sh/devpod/pkg/port"
"github.com/loft-sh/devpod/pkg/random"
"github.com/loft-sh/log"
)

func StartCredentialsServer(ctx context.Context, cancel context.CancelFunc, client tunnel.TunnelClient, log log.Logger) (int, error) {
port, err := GetPort()
port, err := portpkg.FindAvailablePort(random.InRange(13000, 17000))
if err != nil {
return 0, err
}
Expand Down

0 comments on commit bd70d5a

Please sign in to comment.