{% extends "console/base.html" %} {% load ostium_ui %} {% block title %}连接{% endblock %} {% block breadcrumb %}连接{% endblock %} {% block page_header %}
{% icon "swap" "w-3.5 h-3.5" %} 实时连接

实时连接

来自 sing-box Clash API 的实时会话。只监听回环地址,不暴露到公网。

{% csrf_token %}
{% icon "refresh" %} 刷新
{% endblock %} {% block content %} {% if error %}
{% icon "alert" %}
核心未就绪:{{ error }}。这不会影响其他页面与管理操作。
{% endif %}
{% icon "activity" %} {{ connections|length }} 条会话
{% if connections %}
{% for item in connections %} {% endfor %}
用户 入站 目标 规则 链路 上行 下行 操作
{{ item.user }} {{ item.inbound }} {{ item.host }} {{ item.rule }} {{ item.chains|join:" → " }} {{ item.upload|bytes }} {{ item.download|bytes }}
{% csrf_token %}
{% else %}
{% icon "wifi" %}
{% if error %}核心 API 不可用{% else %}当前没有活动连接{% endif %}
{% if error %}确认 sing-box 正在运行,且 Clash API 监听在 127.0.0.1:19090。{% else %}客户端产生流量后,连接会出现在这里。{% endif %}
{% endif %}
{% endblock %}