From 60f416281c4a64167712b928201abbde89684b29 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 21 Oct 2024 19:11:29 +0530 Subject: [PATCH] Disallow multiple connections from same IP --- scripts/init.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index c3887672..8a1333dc 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -103,9 +103,6 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data" ]; then # Run this to allow requests from any origin sed -i 's/cors_allowed_origins.*$/cors_allowed_origins = ["*"]/' $HOME/.laconicd/config/config.toml - # Allow multiple node connections from same IP - sed -i 's/allow_duplicate_ip.*$/allow_duplicate_ip = true/' $HOME/.laconicd/config/config.toml - # Enable telemetry (prometheus metrics: http://localhost:1317/metrics?format=prometheus) if [[ "$OSTYPE" == "darwin"* ]]; then sed -i '' 's/enabled = false/enabled = true/g' $HOME/.laconicd/config/app.toml