eth-netstats map doesn't show info

eth-netstats world map does not show node locations

The reason given on github for this problem is that the version of geoip-lite is too low, and there is also ip filtering; the solution is as follows

1 Modify geoip-lite version

​ cd to the eth-netstats file directory

insert image description here

2 Modify lib/node.js

insert image description here

if(ip.substr(0,7) == "::ffff:"){
    
    
    ip = ip.substr(7)
}

3 Reinstall dependencies

cd to the eth-netstats directory, type npm installandgrunt all

4 Restart PM2

cd to eth-net-intelligence-api in the eth-netstats directory , then typepm2 start app.json

5 start app.json

start app.json`

6 Start the project

cd to the eth-netstats directory to start the web page again

Guess you like

Origin blog.csdn.net/BXQ1120/article/details/125049165