summaryrefslogtreecommitdiff
path: root/modules/ip/ip.js
blob: dec0a9829e48f48fdff4ef951e363706a08e465b (plain)
1
2
3
4
5
6
7
8
var cmn=require("../$common.js"),
    fs=require("fs");

module.exports=function(app,io,moddir){
	app.get("/ip",function(req,res){
		res.send(String(req.socket.remoteAddress));
	});
};