daveappserver 0.6.25 → 0.6.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appserver.js +15 -8
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.6.
|
|
1
|
+
var myVersion = "0.6.26", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -200,17 +200,24 @@ function getDomainName (clientIp, callback) { //11/14/15 by DW
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if (
|
|
207
|
-
|
|
203
|
+
try { //7/27/23 by DW
|
|
204
|
+
dns.reverse (clientIp, function (err, domains) {
|
|
205
|
+
var name = clientIp;
|
|
206
|
+
if (!err) {
|
|
207
|
+
if (domains.length > 0) {
|
|
208
|
+
name = domains [0];
|
|
209
|
+
}
|
|
208
210
|
}
|
|
209
|
-
|
|
211
|
+
if (callback !== undefined) {
|
|
212
|
+
callback (name);
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
catch (err) {
|
|
210
217
|
if (callback !== undefined) {
|
|
211
218
|
callback (name);
|
|
212
219
|
}
|
|
213
|
-
}
|
|
220
|
+
}
|
|
214
221
|
}
|
|
215
222
|
}
|
|
216
223
|
function getDomainNameVerb (clientIp, callback) { //2/27/21 by DW
|