Modify backend to only bind to 127.0.0.1

This commit is contained in:
wiz 2019-08-23 22:27:52 +09:00
parent e27417dc46
commit 9df5024856
No known key found for this signature in database
GPG key ID: A394E332255A6173

View file

@ -50,8 +50,12 @@ class MempoolSpace {
statistics.startStatistics();
fiatConversion.startService();
this.server.listen(8999, () => {
console.log(`Server started on port 8999 :)`);
let opts = {
host: "127.0.0.1",
port: 8999
};
this.server.listen(opts, () => {
console.log(`Server started on ${opts.host}:${opts.port})`);
});
}