Last active
December 4, 2015 01:00
-
-
Save aspyker/a9eda1c5614fa77f4e70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
const PORT=7001; | |
function handleRequest(req, res){ | |
console.log(req.connection.remoteAddress + " " + req.method + " " + req.url); | |
res.statusCode = 400; | |
res.end("This registry no longer supported, see http://userpage"); // update userpage to instructions of where to use now | |
} | |
var server = http.createServer(handleRequest); | |
server.listen(PORT, function(){ | |
console.log("Server listening on: http://localhost:%s", PORT); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment