mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 21:25:06 +01:00
Make TOR optional, add info in welcome page, ability for notifier to bypass
This commit is contained in:
@@ -79,7 +79,8 @@ main() {
|
||||
installation_info)
|
||||
# GET http://192.168.111.152:8080/info
|
||||
if [ -f "$DB_PATH/info.json" ]; then
|
||||
response=$( cat "$DB_PATH/info.json" )
|
||||
# Replace tor_hostname_placeholder with actual tor hostname from tor file
|
||||
response=$(sed "s/tor_hostname_placeholder/`tr -d '\n\r' < tor/hidden_service/hostname`/g" "$DB_PATH/info.json")
|
||||
else
|
||||
response='{ "error": "missing installation data" }'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user