mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(git): set 22 port in git add host
This commit is contained in:
@@ -87,7 +87,6 @@ const addHostToKnownHosts = async (repositoryURL: string) => {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const sanitizeRepoPathSSH = (input: string) => {
|
const sanitizeRepoPathSSH = (input: string) => {
|
||||||
const SSH_PATH_RE = new RegExp(
|
const SSH_PATH_RE = new RegExp(
|
||||||
[
|
[
|
||||||
@@ -113,7 +112,7 @@ const sanitizeRepoPathSSH = (input: string) => {
|
|||||||
return {
|
return {
|
||||||
user: found.groups?.user ?? "git",
|
user: found.groups?.user ?? "git",
|
||||||
domain: found.groups?.domain,
|
domain: found.groups?.domain,
|
||||||
port: Number(found.groups?.port ?? 22),
|
port: 22,
|
||||||
owner: found.groups?.owner ?? "",
|
owner: found.groups?.owner ?? "",
|
||||||
repo: found.groups?.repo,
|
repo: found.groups?.repo,
|
||||||
get repoPath() {
|
get repoPath() {
|
||||||
|
|||||||
Reference in New Issue
Block a user