Skip to content

Commit e7b6957

Browse files
committed
fix: append share code to connection URL for authentication in Linux and Windows launch functions
1 parent e85fd00 commit e7b6957

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/ggo/launch/launch_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ func runLaunch(args []string, shareLink, serverURL string, verbose bool) error {
103103
return fmt.Errorf("failed to get share info: %w", err)
104104
}
105105

106+
// Append share code to connection URL for authentication (consistent with ggo use / studio)
107+
shareInfo.ConnectionURL = shareInfo.ConnectionURL + "+" + shortCode
106108
klog.Infof("Found GPU worker: worker_id=%s vendor=%s connection_url=%s", shareInfo.WorkerID, shareInfo.HardwareVendor, shareInfo.ConnectionURL)
107109

108110
connectionInfo := shareInfo.ConnectionURL

cmd/ggo/launch/launch_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ func runLaunch(args []string, shareLink, serverURL string, verbose bool) error {
161161
return fmt.Errorf("failed to get share info: %w", err)
162162
}
163163

164+
// Append share code to connection URL for authentication (consistent with ggo use / studio)
165+
shareInfo.ConnectionURL = shareInfo.ConnectionURL + "+" + shortCode
164166
klog.Infof("Found GPU worker: worker_id=%s vendor=%s connection_url=%s", shareInfo.WorkerID, shareInfo.HardwareVendor, shareInfo.ConnectionURL)
165167

166168
connectionInfo := shareInfo.ConnectionURL

0 commit comments

Comments
 (0)