stud-backend

http server with stud ip header parsing

stud-backend

Use the --write-ip flag on stud and get the remote ip in node.

var studServer = require('stud-backend')
 
studServer.createServer(function (reqres) {
  console.log(req.socket._ip)
  res.end(req.headers['x-forwared-for'] + '\n')
}).listen(8080)
$ npm install stud-backend

MIT