Quick quit ssh://

This commit is contained in:
techknowlogick
2025-07-15 17:00:08 -04:00
committed by GitHub
parent 5ca8e61edd
commit 2830c5f897
+3
View File
@@ -91,6 +91,9 @@ func IsRemoteNotExistError(err error) bool {
// normalizeSSHURL converts SSH-SCP format URLs to standard ssh:// format for security
func normalizeSSHURL(remoteAddr string) (string, error) {
if strings.HasPrefix(remoteAddr, "ssh://") {
return remoteAddr, nil
}
if strings.Contains(remoteAddr, "://") {
return remoteAddr, errors.New("remoteAddr has a scheme")
}