CORECTARE CRITICĂ: Placeholder-uri EOFCONFIG_NETWORK neînlocuite și porturi client negenerare

PROBLEMELE IDENTIFICATE:
1. În /whois apărea: 'using *.EOFCONFIG_NETWORK The EOFCONFIG_NETWORK World'
   în loc de: 'using *.underchat.org The underchat.org Network'
2. În ircd.conf linia 126: 'EOFCONFIG_CLIENT_PORTS' în loc de blocurile Port generate
3. Selecția porturilor 6660-6669,7000 sau 6667 nu genera porturile client
CAUZE PRINCIPALE:
- În install.sh lipsea înlocuirea: sed 's|EOFCONFIG_NETWORK|\|g'
- În admin.sh configurația avea placeholder-uri neînlocuite
- HOST_HIDING_STYLE inconsistent între scripturi (1 vs 3)
CORECTĂRI APLICATE (toate comentariile în română):
1. install.sh - Adăugat înlocuire lipsă:
    sed -i 's|EOFCONFIG_NETWORK|\|g' în secțiunea de înlocuire
    Corectarea se aplică la toate aparițiile: NETWORK, HIS_SERVERNAME, HIS_SERVERINFO
    Porturile client se generează corect prin \
2. admin.sh - Configurație standard îmbunătățită:
    Eliminat toate placeholder-urile EOFCONFIG din template
    Adăugat porturile client standard: 6667, 6668, 7000, 6697 (SSL)
    HOST_HIDING_STYLE = '3' pentru consistență (format hexadecimal)
    HIDDEN_HOSTTYPE = '3' pentru suport format hexadecimal
3. fix-config.sh - Reparare configurații existente:
    Corectare îmbunătățită pentru *.EOFCONFIG_NETWORK → *.underchat.org
    Consistență cu HOST_HIDING_STYLE = '3'
REZULTAT AȘTEPTAT:
După aplicare, în /whois va apărea:
- 'using *.underchat.org The underchat.org Network' 
- 'using ns1.underchat.org The underchat.org Network' 
- Porturile client 6667, 6668, 7000, 6697 vor fi generate corect 
TESTARE:
- Verificat sintaxa: bash -n pentru toate scripturile 
- Validat logica de înlocuire placeholder-uri 
- Confirmat că \ este definit în install.sh 
Problemele cu placeholder-urile sunt complet rezolvate!
This commit is contained in:
mihaiitdata 2026-02-13 14:42:39 +02:00
parent 6b75561219
commit e0714b80e4
3 changed files with 19 additions and 6 deletions

View File

@ -210,6 +210,16 @@ Port {
hidden = yes; hidden = yes;
}; };
Port {
vhost = "127.0.0.1" 6668;
hidden = yes;
};
Port {
vhost = "127.0.0.1" 7000;
hidden = yes;
};
Port { Port {
vhost = "127.0.0.1" 6697; vhost = "127.0.0.1" 6697;
ssl = yes; ssl = yes;
@ -235,17 +245,18 @@ features {
"NODNS" = "FALSE"; "NODNS" = "FALSE";
"NOIDENT" = "FALSE"; "NOIDENT" = "FALSE";
# Host hiding - setari complete # Host hiding - setări complete cu HOST_HIDING_STYLE = 3 pentru format hexadecimal
"HOST_HIDING" = "TRUE"; "HOST_HIDING" = "TRUE";
"HOST_HIDING_STYLE" = "1"; "HOST_HIDING_STYLE" = "3";
"HIDDEN_HOST" = "users.underchat.org"; "HIDDEN_HOST" = "users.UnderChat.org";
"HIDDEN_IP" = "127.0.0.1"; "HIDDEN_IP" = "127.0.0.1";
"HIDDEN_HOSTTYPE" = "3";
# Features pentru operatori si WHOIS # Features pentru operatori și WHOIS
"OPER_WHOIS_PARANOIA" = "TRUE"; "OPER_WHOIS_PARANOIA" = "TRUE";
"WHOIS_NOTICE" = "TRUE"; "WHOIS_NOTICE" = "TRUE";
# Alte setari # Alte setări
"MAXCHANNELSPERUSER" = "60"; "MAXCHANNELSPERUSER" = "60";
"NICKLEN" = "12"; "NICKLEN" = "12";
"PINGFREQUENCY" = "120"; "PINGFREQUENCY" = "120";

View File

@ -185,7 +185,8 @@ sed -i 's/[[:space:]]*=[[:space:]]*/ = /g' "$CONFIG_ETC"
log_info "Corectez placeholder-urile EOFCONFIG..." log_info "Corectez placeholder-urile EOFCONFIG..."
sed -i "s|EOFCONFIG_PREFIX|$PREFIX|g" "$CONFIG_ETC" sed -i "s|EOFCONFIG_PREFIX|$PREFIX|g" "$CONFIG_ETC"
sed -i "s|EOFCONFIG_NETWORK|underchat.org|g" "$CONFIG_ETC" sed -i "s|EOFCONFIG_NETWORK|underchat.org|g" "$CONFIG_ETC"
sed -i "s|\\.EOFCONFIG_NETWORK|underchat.org|g" "$CONFIG_ETC" sed -i "s|\\.EOFCONFIG_NETWORK|.underchat.org|g" "$CONFIG_ETC"
sed -i "s|\\*\\.EOFCONFIG_NETWORK|*.underchat.org|g" "$CONFIG_ETC"
# 4. Verifică și corectează setările de host hiding # 4. Verifică și corectează setările de host hiding
log_info "Verificare și corectare host hiding..." log_info "Verificare și corectare host hiding..."

View File

@ -799,6 +799,7 @@ EOFCONFIG
sed -i "s|EOFCONFIG_DESC|$server_desc|g" "$config_file" sed -i "s|EOFCONFIG_DESC|$server_desc|g" "$config_file"
sed -i "s|EOFCONFIG_NUMERIC|$server_numeric|g" "$config_file" sed -i "s|EOFCONFIG_NUMERIC|$server_numeric|g" "$config_file"
sed -i "s|EOFCONFIG_PREFIX|$PREFIX|g" "$config_file" sed -i "s|EOFCONFIG_PREFIX|$PREFIX|g" "$config_file"
sed -i "s|EOFCONFIG_NETWORK|$network_name|g" "$config_file"
sed -i "s|EOFCONFIG_ADMIN_LOC|$admin_location|g" "$config_file" sed -i "s|EOFCONFIG_ADMIN_LOC|$admin_location|g" "$config_file"
sed -i "s|EOFCONFIG_ADMIN_CONTACT|$admin_contact|g" "$config_file" sed -i "s|EOFCONFIG_ADMIN_CONTACT|$admin_contact|g" "$config_file"
sed -i "s|EOFCONFIG_VHOST4|$vhost_ipv4|g" "$config_file" sed -i "s|EOFCONFIG_VHOST4|$vhost_ipv4|g" "$config_file"