Skip to content

Commit

Permalink
change rpcallowip set at 0.0.0.0 to 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tryiou committed May 8, 2024
1 parent e5281f6 commit daf6a33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blocknet_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ def check_blocknet_conf(self):
# f"Value for {key} is empty. Generated new value: {self.blocknet_conf_local[section][key]}")
# CHECK IF VALUE IS NOT EMPTY STRING ELSE GENERATE NEW VALUE
else:
if key not in self.blocknet_conf_local[section] or self.blocknet_conf_local[section][key] != value:
if key == "rpcallowip":
self.blocknet_conf_local[section][key] = "127.0.0.1"
elif key not in self.blocknet_conf_local[section] or self.blocknet_conf_local[section][key] != value:
self.blocknet_conf_local[section][key] = value
# logging.debug(f"Updated {key} value: {value}")

Expand Down

0 comments on commit daf6a33

Please sign in to comment.