stud-backend

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i stud-backend

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • tellnes