1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2026-01-06 08:21:10 +03:00

Use is_only_loopback_hostname instead of LOCALHOSTS

This commit is contained in:
Alexander Presnyakov
2025-09-18 01:10:49 +00:00
parent 85690a0de1
commit a357566db7

View File

@@ -97,7 +97,7 @@ def add_node(
# If a hostname (not IP) is provided, ensure fwd/rev DNS consistency.
# Skip validation for localhost aliases to preserve legacy single-node flows.
if not NetworkManager.is_ip(node) and node not in LOCALHOSTS:
if not NetworkManager.is_ip(node) and not NetworkManager.is_only_loopback_hostname(node):
NetworkManager.validate_hostname_fwd_rev(node)
try: