fix server listing

This commit is contained in:
KF7EEL 2021-10-07 11:57:43 -07:00
parent f5f1f9b91f
commit 1847f13471

View File

@ -919,9 +919,6 @@ def hbnet_web_service():
script_links = ast.literal_eval(script_l.field_2)
svr_content = ''
for i in sl:
if i.ip == '':
break
elif i.ip != '':
try:
if time.time() - ping_list[i.name] < 20:
svr_status = '''<div class="alert alert-success">
@ -945,7 +942,9 @@ def hbnet_web_service():
svr_status = '''<div class="alert alert-warning">
<strong>Unknown</strong>
</div> '''
if i.ip == '':
pass
else:
svr_content = svr_content + '''
<div class="card">
<div class="card-header" style="text-align: center;"><h3>''' + i.name + '''</h3></div>
@ -3734,7 +3733,7 @@ TG #: <strong> ''' + str(tg_d.tg) + '''</strong>
<td style="width: 78.7895%;">&nbsp;<input name="dash_url" type="text" value="''' + str(s.dash_url) + '''"/></td>
</tr>
<tr>
<td style="width: 16.0381%;"><strong>&nbsp;Host (IP/DNS, for listing on passphrase page, blank to not list):</strong></td>
<td style="width: 16.0381%;"><strong>&nbsp;Host (IP/DNS, for listing on passphrase page):</strong></td>
<td style="width: 78.7895%;">&nbsp;<input name="server_ip" type="text" value="''' + str(s.ip) + '''"/></td>
</tr>
@ -3941,7 +3940,7 @@ TG #: <strong> ''' + str(tg_d.tg) + '''</strong>
<td style="width: 70%;">&nbsp;<input name="dash_url" type="text" /></td>
</tr>
<tr>
<td style="width: 16.0381%;"><strong>&nbsp;Host (IP/DNS, blank to not list):</strong></td>
<td style="width: 16.0381%;"><strong>&nbsp;Host (IP/DNS):</strong></td>
<td style="width: 78.7895%;">&nbsp;<input name="server_ip" type="text" /></td>
</tr>