mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-17 17:35:17 +00:00
Merge pull request #2383 from haouarihk/trim-ip-address
Trim ip address
This commit is contained in:
@@ -112,7 +112,7 @@ export const HandleServers = ({ serverId }: Props) => {
|
|||||||
await mutateAsync({
|
await mutateAsync({
|
||||||
name: data.name,
|
name: data.name,
|
||||||
description: data.description || "",
|
description: data.description || "",
|
||||||
ipAddress: data.ipAddress || "",
|
ipAddress: data.ipAddress?.trim() || "",
|
||||||
port: data.port || 22,
|
port: data.port || 22,
|
||||||
username: data.username || "root",
|
username: data.username || "root",
|
||||||
sshKeyId: data.sshKeyId || "",
|
sshKeyId: data.sshKeyId || "",
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export const CreateServer = ({ stepper }: Props) => {
|
|||||||
await mutateAsync({
|
await mutateAsync({
|
||||||
name: data.name,
|
name: data.name,
|
||||||
description: data.description || "",
|
description: data.description || "",
|
||||||
ipAddress: data.ipAddress || "",
|
ipAddress: data.ipAddress?.trim() || "",
|
||||||
port: data.port || 22,
|
port: data.port || 22,
|
||||||
username: data.username || "root",
|
username: data.username || "root",
|
||||||
sshKeyId: data.sshKeyId || "",
|
sshKeyId: data.sshKeyId || "",
|
||||||
|
|||||||
Reference in New Issue
Block a user