This commit is contained in:
dami
2026-02-01 03:34:07 +08:00
parent aa7962c959
commit 944714e4ba
2 changed files with 18 additions and 2 deletions
+5
View File
@@ -120,6 +120,11 @@ class App():
destr = mw.deDoubleCrypt('mdserver-web', rdata)
return json.loads(destr)
def get_server_by_host_data(self, host):
info_file = self.__host_dir + '/' + host + '/info.json'
info_data = self.getSshInfo(info_file)
return info_data
def get_server_by_host(self):
args = self.getArgs()
check = self.checkArgs(args, ['host'])