Verified Commit 4fa31e32 authored by likewhoa's avatar likewhoa
Browse files

Fix typo in Specter local ip url and convert port to a variable

parent dfc8eb61
......@@ -212,7 +212,7 @@ Specter Server Credentials
***
${nc}
Local IP = http://${ip}:25441
Local IP = https://${ip}:${specter_port}
Tor Address = http://${tor_addr_specter}
RPC User = $BITCOIND_RPC_USER
RPC Password = $BITCOIND_RPC_PASSWORD
......@@ -324,7 +324,7 @@ ${red}
Specter Server Credentials
***
${nc}
Local IP = http://${ip}:25441
Local IP = https://${ip}:${specter_port}
Tor Address = http://${tor_addr_specter}
RPC User = $BITCOIND_RPC_USER
RPC Password = $BITCOIND_RPC_PASSWORD
......
......@@ -158,6 +158,7 @@ specter_sign_key_url="https://stepansnigirev.com/ss-specter-release.asc"
specter_sign_key="ss-specter-release.asc"
specter_url="https://github.com/cryptoadvance/specter-desktop.git"
specter_version="v1.5.1"
specter_port="25441"
# Network info
ip=$(ip route get 1 | awk '{print $7}')
......
......@@ -2266,7 +2266,7 @@ _specter_config_tor() {
sudo sed -i "/################ This section is just for relays/i\
HiddenServiceDir ${install_dir_tor}/specter_server/\n\
HiddenServiceVersion 3\n\
HiddenServicePort 443 127.0.0.1:25441\n\
HiddenServicePort 443 127.0.0.1:${specter_port}\n\
" /etc/tor/torrc
sudo systemctl restart --quiet tor
fi
......@@ -2422,7 +2422,7 @@ EOF
_specter_cert_check
_ufw_rule_add "${ip_range}" 25441
_ufw_rule_add "${ip_range}" "${specter_port}"
sudo systemctl daemon-reload
sudo systemctl enable --quiet specter
......@@ -2502,7 +2502,7 @@ EOF
_specter_cert_check
# check if udev rules are present if not install them.
_ufw_rule_add "${ip_range}" "25441"
_ufw_rule_add "${ip_range}" "${specter_port}"
sudo systemctl daemon-reload
systemctl is-enabled --quiet specter || sudo systemctl enable --quiet specter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment