1 parent 40caa94 commit a12e0c3Copy full SHA for a12e0c3
1 file changed
v3/opt_togetherjs/server.js
@@ -664,7 +664,11 @@ wsServer.on('request', function(request) {
664
// when you first enter a session (i.e., saying 'hello'), try to geolocate
665
// your IP address server-side (since it's more accurate than doing it
666
// client-side) and then log/send a pg-hello-geolocate event to everyone
667
- if (parsed.type === 'hello') {
+ //
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') {
672
// copied from createLogEntry
673
// Webfaction forwards IP addresses via proxy, so use this ...
674
// http://stackoverflow.com/questions/8107856/how-can-i-get-the-users-ip-address-using-node-js
0 commit comments