From 49ea9a18972f4847fc13c0f7af9b40c62cfc3d5a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 29 Feb 2020 17:59:06 -0500 Subject: lnrpc woes --- users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users.js') diff --git a/users.js b/users.js index 8575bf25..db2168c1 100644 --- a/users.js +++ b/users.js @@ -88,7 +88,7 @@ module.exports = (addresses, auth, app, bc, db, emit) => { GB: "GBP" }; - if (ip === "127.0.0.1") user.currency = "CAD"; + if (ip.startsWith('127') || ip.startsWith('192')) user.currency = "CAD"; else { let info = await axios.get(`http://api.ipstack.com/${ip}?access_key=${config.ipstack}`); user.currency = countries[info.data.country_code] || "USD"; -- cgit v1.2.3