Development

This commit is contained in:
Matthew Grotke 2026-05-24 00:22:11 -04:00
parent 275ccd0bac
commit 1c8fbc60c0
2 changed files with 6 additions and 2 deletions

View file

@ -330,7 +330,7 @@ def _config_datasource(name):
f'<b>P:</b> &bull;&bull;&bull;</div>')
elif ptype in ('cloudflare', 'duckdns'):
tok = p.get('api_token', '')
row['credentials'] = f'<b>API Token:</b> {e(tok[:16])}...' if tok else '(not set)'
row['credentials'] = f'<b>API Token:</b> {e(tok[:24])}...' if tok else '(not set)'
else:
row['credentials'] = '-'
row['hostnames'] = json.dumps(p.get('hostnames', p.get('subdomains', [])))
@ -1493,7 +1493,7 @@ def render_layout(view_id, content_html, tokens):
text = e(item.get('detail', item.get('name', '')))
tip = item.get('suggestion', '')
if tip:
text += f' <span style="opacity:0.75">- {e(tip)}</span>'
text += f' <span style="opacity:0.75">{e(tip)}</span>'
problem_bars += f'<div class="info-bar {cls}">{text}</div>\n'
except Exception:
pass

View file

@ -599,6 +599,10 @@ def main():
print(" and that port 80 and 443 are forwarded to this machine.")
print()
print("Done.")
print()
print(" Next step: use the web dashboard to configure your network, or")
print(f" configure {SCRIPT_DIR}/core.json manually and then run:")
print(f" sudo python3 {SCRIPT_DIR}/core.py --apply")
if __name__ == "__main__":