From 50bc95598688c171995300adafa13a20e9e9dde1 Mon Sep 17 00:00:00 2001 From: mihaiitdata Date: Mon, 23 Feb 2026 23:40:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20complete=20guide=20for=20C?= =?UTF-8?q?onnect=20block=20hostname=20escape=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FIX_CONNECT_BLOCK_ESCAPE.md | 0 install.sh | 10 +++------- 2 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 FIX_CONNECT_BLOCK_ESCAPE.md diff --git a/FIX_CONNECT_BLOCK_ESCAPE.md b/FIX_CONNECT_BLOCK_ESCAPE.md new file mode 100644 index 0000000..e69de29 diff --git a/install.sh b/install.sh index 6f5b76e..13ed1ed 100755 --- a/install.sh +++ b/install.sh @@ -1277,13 +1277,9 @@ Operator { # Generare CONNECT section pentru link server-to-server (independent de HUB/LEAF) if [ "$hub_config" = "yes" ]; then - # Escape-uim caracterele speciale pentru sed - hub_name_escaped=$(printf '%s\n' "$hub_name" | sed 's:[][\/.^$*]:\\&:g') - hub_host_escaped=$(printf '%s\n' "$hub_host" | sed 's:[][\/.^$*]:\\&:g') - hub_pass_escaped=$(printf '%s\n' "$hub_pass" | sed 's:[][\/.^$*|]:\\&:g') - - # Generăm blocul Connect folosind awk pentru înlocuire sigură - awk -v name="$hub_name_escaped" -v host="$hub_host_escaped" -v pass="$hub_pass_escaped" -v port="$hub_port" ' + # Generăm blocul Connect folosind awk (NU escape-uim hostname-urile!) + # awk gestionează automat caracterele speciale în variabile -v + awk -v name="$hub_name" -v host="$hub_host" -v pass="$hub_pass" -v port="$hub_port" ' /EOFCONFIG_HUB_CONNECT/ { print "# Conectare server-to-server" print "Connect {"