Skip to content

m-ui v0.3.4

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 13:09

m-ui v0.3.4

v0.3.4 is a security fix. Update every installation, especially if you imported inbounds from 3x-ui, Xray or Mihomo YAML.

Security fixes

  • Imported inbounds now follow their client list. An inbound imported from Mihomo YAML, Xray or 3x-ui kept its original listener, and m-ui wrote that listener to the config unchanged. Renaming, adding, disabling or deleting a client changed the panel but not Mihomo, and quotas and expiry dates did not cut anyone off. The users of an imported inbound now always come from its enabled clients. Other imported options stay as they are.
  • An inbound with no client left to connect is no longer served. When every client was disabled, expired or out of traffic, m-ui wrote a placeholder user instead: a fixed UUID for VLESS and VMess, an empty password for Trojan and similar protocols. With the VLESS UUID a connection really was accepted. Mixed, SOCKS and HTTP inbounds got an empty user list, which means no authentication. Such inbounds are now left out of the config until a client is allowed again.

Fixes

  • Client traffic on imported inbounds is counted. A VLESS listener imported without usernames reported no user to the panel, so the inbound total grew while its clients stayed at 0 and offline.
  • A second client on an imported Shadowsocks inbound works. v0.3.3 added several clients per Shadowsocks inbound, but on imported ones the new client never reached Mihomo.

Before you update

  • Quotas, expiry dates and disabled clients take effect on imported inbounds for the first time. Clients that should have been cut off earlier will be disconnected; check their limits first if that matters.
  • Traffic that was not counted cannot be recovered. Those clients start from 0.
  • Update with m-ui update. Docker: pull ghcr.io/romanovcaesar/m-ui:v0.3.4.

v0.3.4 是安全修复版本,建议所有安装都升级,尤其是从 3x-ui、Xray 或 Mihomo YAML 导入过入站的。

安全修复

  • 导入的入站现在跟随客户端列表。 从 Mihomo YAML、Xray 或 3x-ui 导入的入站会保留原始的 listener,m-ui 以前把它原样写进配置。改名、新增、停用、删除客户端只改了面板,没有改到 Mihomo,限额和到期也不会断开任何人。现在导入的入站,用户一律以启用的客户端为准,导入的其他选项保持不变。
  • 没有客户端可用的入站不再对外提供服务。 所有客户端都停用、到期或用完流量时,m-ui 以前会写入一个兜底用户:VLESS 和 VMess 是固定的 UUID,Trojan 等协议是空密码。实测 VLESS 的固定 UUID 确实能连上。mixed、SOCKS 和 HTTP 入站则会变成空的用户列表,也就是免认证。现在这类入站不会写进配置,直到有客户端可用为止。

问题修复

  • 导入的入站能统计客户端流量了。 导入时没有用户名的 VLESS listener 不会向面板上报用户,所以入站总流量在涨,客户端却一直是 0 且离线。
  • 导入的 Shadowsocks 入站可以添加第二个客户端了。 v0.3.3 支持一个 Shadowsocks 入站有多个客户端,但在导入的入站上,新客户端没有写进 Mihomo。

升级前请注意

  • 导入的入站上,限额、到期和停用会第一次真正生效,早该断开的客户端会被断开。有顾虑的话请先检查它们的限制。
  • 以前没统计到的流量无法补回,这些客户端从 0 开始计。
  • 用 m-ui update 升级。Docker 用户拉取 ghcr.io/romanovcaesar/m-ui:v0.3.4。

Full Changelog: v0.3.3...v0.3.4