Created
July 20, 2011 20:08
-
-
Save cdollins/1095802 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
app.post('/config', function(req, res) { | |
console.log('Received Config Push'); | |
//Get Client Name | |
var name = req.header('X-Forwarded-For'); | |
console.log('Destined for '+ name); | |
// Get message from POST | |
req.on('data', function(raw) { | |
console.log("Data train is here: " + raw); | |
//Send to NSA | |
sendPB.sendProto(name, encode(raw, 0)); | |
}); | |
res.send('Configurations Pushed to ' + name); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment