Merge branch 'force_SSL' of https://github.com/wmantly/proxy into vagrant

This commit is contained in:
2019-12-10 01:40:21 -05:00
2 changed files with 8 additions and 2 deletions

View File

@ -35,7 +35,10 @@ router.post('/', async function(req, res){
}
try{
Host.add({host, ip, username: req.user.username});
await Host.add({host, ip,
username: req.user.username,
forceSSL: req.body.forceSSL
});
return res.json({
message: `Host ${host} Added`