Skip to content

Commit a12e0c3

Browse files
committed
disable pg-hello-geolocate due to ipstack.com API limits
1 parent 40caa94 commit a12e0c3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

v3/opt_togetherjs/server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,11 @@ wsServer.on('request', function(request) {
664664
// when you first enter a session (i.e., saying 'hello'), try to geolocate
665665
// your IP address server-side (since it's more accurate than doing it
666666
// client-side) and then log/send a pg-hello-geolocate event to everyone
667-
if (parsed.type === 'hello') {
667+
//
668+
// 2018-06-22: *disable* this feature (set to if(false)) since ipstack.com
669+
// limits number of API calls per month, so we don't want to exceed limits!
670+
if (false) {
671+
//if (parsed.type === 'hello') {
668672
// copied from createLogEntry
669673
// Webfaction forwards IP addresses via proxy, so use this ...
670674
// http://stackoverflow.com/questions/8107856/how-can-i-get-the-users-ip-address-using-node-js

0 commit comments

Comments
 (0)