From a4a55d207419ccbee93896465c7bddb542fefe7d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Oct 2016 21:12:54 +0100 Subject: [PATCH] no onion server for irc bouncer --- src/freedombone-app-irc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-irc b/src/freedombone-app-irc index 40eaf692..b1127cd6 100755 --- a/src/freedombone-app-irc +++ b/src/freedombone-app-irc @@ -107,9 +107,8 @@ function add_user_irc_bouncer { stop_irc_bouncer - #ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}' | cut -c1-20)" - ZNC_SALT='WggsZXvdAmVy4_cu4,_*' - new_user_hash=$(echo "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}') + ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}' | cut -c1-20)" + new_user_hash=$(echo -n "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}') echo "" >> /home/znc/.znc/configs/znc.conf echo " Admin = ${is_admin}" >> /home/znc/.znc/configs/znc.conf @@ -140,7 +139,7 @@ function add_user_irc_bouncer { echo ' LoadModule = simple_away' >> /home/znc/.znc/configs/znc.conf echo '' >> /home/znc/.znc/configs/znc.conf echo " Server = ${DEFAULT_DOMAIN_NAME} ${IRC_PORT} ${IRC_PASSWORD}" >> /home/znc/.znc/configs/znc.conf - echo " Server = ${IRC_ONION_HOSTNAME} ${IRC_PORT} ${IRC_PASSWORD}" >> /home/znc/.znc/configs/znc.conf + #echo " Server = ${IRC_ONION_HOSTNAME} ${IRC_PORT} ${IRC_PASSWORD}" >> /home/znc/.znc/configs/znc.conf echo '' >> /home/znc/.znc/configs/znc.conf echo " " >> /home/znc/.znc/configs/znc.conf echo ' ' >> /home/znc/.znc/configs/znc.conf