make password field true or false
This commit is contained in:
parent
31ef649657
commit
e07819eef2
4
index.js
4
index.js
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue