diff --git a/.env.example b/.env.example index 4ea11d88..ad9e0eb7 100644 --- a/.env.example +++ b/.env.example @@ -3,4 +3,5 @@ PEERS=["http://gun.shock.network:8765/gun"] MS_TO_TOKEN_EXPIRATION=4500000 DISABLE_SHOCK_ENCRYPTION=false CACHE_HEADERS_MANDATORY=true -SHOCK_CACHE=true \ No newline at end of file +SHOCK_CACHE=true +DISABLE_PEER_ALIAS_CHECK = false diff --git a/services/gunDB/config.js b/services/gunDB/config.js index 44dab137..424cc53c 100644 --- a/services/gunDB/config.js +++ b/services/gunDB/config.js @@ -23,3 +23,6 @@ exports.MS_TO_TOKEN_EXPIRATION = Number( ) exports.SHOW_LOG = process.env.SHOW_GUN_DB_LOG === 'true' + +exports.DISABLE_PEER_ALIAS_CHECK = + process.env.DISABLE_PEER_ALIAS_CHECK === 'true'