Update hosts.js
This commit is contained in:
parent
bd02f82178
commit
5110ff72a0
@ -26,7 +26,7 @@ async function add(data){
|
|||||||
await client.HSET('host_' + data.host, 'ip', data.ip);
|
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, 'updated', (new Date).getTime());
|
||||||
await client.HSET('host_' + data.host, 'username', data.username);
|
await client.HSET('host_' + data.host, 'username', data.username);
|
||||||
await client.HSET('host_' + data.host, 'force_ssl', data.forceSSL || 'false');
|
if(data.forceSSL) await client.HSET('host_' + data.host, 'force_ssl', !!data.forceSSL);
|
||||||
} catch (error){
|
} catch (error){
|
||||||
|
|
||||||
return new Error(error);
|
return new Error(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user