aboutsummaryrefslogtreecommitdiffstats
path: root/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'users.js')
-rw-r--r--users.js2
1 files changed, 1 insertions, 1 deletions
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";