Disallow multiple connections from same IP
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m50s
Build / build (pull_request) Successful in 3m7s
E2E Tests / test-e2e (pull_request) Successful in 4m22s
Unit Tests / test-unit (pull_request) Successful in 2m23s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 8m11s
SDK Tests / sdk_tests_authority_auctions (pull_request) Successful in 15m15s
SDK Tests / sdk_tests (pull_request) Successful in 19m40s

This commit is contained in:
Prathamesh Musale 2024-10-21 19:11:29 +05:30
parent db39bd367b
commit 60f416281c

View File

@ -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