Skip to content

tellnes/stud-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

http server with stud ip header parsing

Resources

License

Stars

Watchers

Forks

Packages

No packages published