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

@ -25,7 +25,10 @@ async function add(data){
await client.SADD('hosts', data.host);
await client.HSET('host_' + data.host, 'ip', data.ip);
await client.HSET('host_' + data.host, 'updated', (new Date).getTime());
await client.HSET('host_' + data.host, 'username', data.username);
await client.HSET('host_' + data.host, 'username', data.username);
if(data.forceSSL !== undefined){
await client.HSET('host_' + data.host, 'force_ssl', !!data.forceSSL);
}
} catch (error){
return new Error(error);