typo with source_port

This commit is contained in:
Dave Horton
2020-02-17 21:39:52 -05:00
parent 8c95a5ceeb
commit b744150b99

View File

@@ -10,7 +10,7 @@ module.exports = (srf, logger) => {
srf.options((req, res) => {
res.send(200);
if (req.has('X-FS-Status')) {
const uri = `${req.source_address}:${req.source_address}`;
const uri = `${req.source_address}:${req.source_port}`;
const status = req.get('X-FS-Status');
const calls = req.has('X-FS-Calls') ? parseInt(req.get('X-FS-Calls')) : 0;
if (status === 'open') {