make password field true or false

This commit is contained in:
Christopher Cookman 2023-01-06 11:28:39 -07:00
parent 31ef649657
commit e07819eef2
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -161,7 +161,7 @@ function checkServer(address) {
"name": data.name,
"address": data.address[0],
"port": data.address[1],
"password": data.visibility,
"password": data.visibility == 1 ? true : false,
"version": data.serverInfo.version,
"dlc": data.serverInfo.dlc,
"dlcString": data.serverInfo.dlcString,
@ -403,7 +403,7 @@ app.get('/check', (req, res) => {
"name": data.name,
"address": data.address[0],
"port": data.address[1],
"password": data.visibility,
"password": data.visibility == 1 ? false : true,
"version": data.serverInfo.version,
"dlc": data.serverInfo.dlc,
"dlcString": data.serverInfo.dlcString,