forked from Dokploy/dokploy
-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When users input server IP addresses with leading or trailing whitespace, SSH connections fail because the whitespace is not trimmed before attempting the connection.
Current Behavior
- User enters IP address with whitespace (e.g., " 192.168.1.1 " or "192.168.1.1 ")
- System attempts SSH connection with untrimmed IP
- Connection fails with error
- User must re-enter IP without whitespace
Expected Behavior
- User enters IP address (with or without whitespace)
- System automatically trims whitespace
- SSH connection succeeds
- Better user experience with input forgiveness
Steps to Reproduce
- Navigate to server configuration
- Enter an IP address with leading/trailing spaces: " 192.168.1.1 "
- Attempt to establish SSH connection
- Connection fails due to invalid IP format
Proposed Solution
Add .trim() method to IP address input field before processing. This is a simple string manipulation that should be applied wherever IP addresses are collected from user input.
Technical Context
- Type: Input validation fix
- Files affected: Server configuration forms
- Solution: String trimming on IP address fields
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working