diff options
| author | Adam Soltys <[email protected]> | 2020-02-29 17:59:06 -0500 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-02-29 17:59:06 -0500 |
| commit | 49ea9a18972f4847fc13c0f7af9b40c62cfc3d5a (patch) | |
| tree | 13a7fd6f9174adb2d8b64ce2179844d7a62b9615 /users.js | |
| parent | 77158ce5f155b90a67c28489202330cef5efd1f4 (diff) | |
| download | coinos-server-49ea9a18972f4847fc13c0f7af9b40c62cfc3d5a.tar.gz coinos-server-49ea9a18972f4847fc13c0f7af9b40c62cfc3d5a.zip | |
lnrpc woes
Diffstat (limited to 'users.js')
| -rw-r--r-- | users.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |
