Skip to content

feat: Add support for FQDN, IPv4, and IPv6 addresses in server settings#285

Merged
michelroegl-brunner merged 1 commit intomainfrom
feat/allow_fdqn_and_ipv6_for_servers
Nov 7, 2025
Merged

feat: Add support for FQDN, IPv4, and IPv6 addresses in server settings#285
michelroegl-brunner merged 1 commit intomainfrom
feat/allow_fdqn_and_ipv6_for_servers

Conversation

@michelroegl-brunner
Copy link
Copy Markdown
Member

Summary

This PR adds support for FQDN (Fully Qualified Domain Names), IPv4, and IPv6 addresses in the server settings modal.

Changes

  • Replace IPv4-only validation with comprehensive address validation function
  • Support IPv4 addresses (e.g., 192.168.1.1)
  • Support IPv6 addresses including compressed format (e.g., ::1, 2001:db8::1)
  • Support FQDN/hostnames (e.g., server.example.com, localhost)
  • Update UI label from 'IP Address' to 'Host/IP Address'
  • Update placeholder text with examples for all supported formats
  • Update error messages to reflect new validation capabilities

Validation

The validation function now checks for:

  1. IPv4 addresses using RFC-compliant regex
  2. IPv6 addresses (full format, compressed format, and IPv4-mapped)
  3. FQDN/hostnames per RFC 1123 (max 253 chars, labels max 63 chars)

Testing

  • IPv4 addresses validate correctly
  • IPv6 addresses validate correctly (including compressed format)
  • FQDN/hostnames validate correctly
  • Invalid addresses show appropriate error messages
  • UI labels and placeholders updated correctly

- Replace IPv4-only validation with comprehensive address validation
- Support IPv4 addresses (e.g., 192.168.1.1)
- Support IPv6 addresses including compressed format (e.g., ::1, 2001:db8::1)
- Support FQDN/hostnames (e.g., server.example.com, localhost)
- Update UI label from 'IP Address' to 'Host/IP Address'
- Update placeholder text with examples for all supported formats
- Update error messages to reflect new validation capabilities
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner November 7, 2025 12:17
@michelroegl-brunner michelroegl-brunner merged commit 73776ec into main Nov 7, 2025
4 checks passed
@michelroegl-brunner michelroegl-brunner deleted the feat/allow_fdqn_and_ipv6_for_servers branch November 13, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server Configurations: IP Address: IPv6 not working Problem adding proxmox servers

1 participant