stud-backend

http server with stud ip header parsing

npm install stud-backend
2 downloads in the last week
4 downloads in the last month

stud-backend

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

Usage

var studServer = require('stud-backend')

studServer.createServer(function (req, res) {
  console.log(req.socket._ip)
  res.end(req.headers['x-forwared-for'] + '\n')
}).listen(8080)

Install

$ npm install stud-backend

License

MIT

npm loves you