From 65455c55cfd0f07924ed43cd520f8011f6032c27 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 10 Aug 2026 18:55:59 +0800 Subject: [PATCH] fix: add user field to frpc.ini for client identification - frps assigns random clientID without user field - Web UI matches clients by name, so all showed offline - Now render_frpc_ini() writes user = - frps dashboard API returns user field for matching --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 48fbfd8..f092f8b 100644 --- a/app.py +++ b/app.py @@ -501,6 +501,8 @@ def render_frpc_ini(client, server_addr, bind_port): lines.append("[common]") lines.append(f"server_addr = {server_addr}") lines.append(f"server_port = {bind_port}") + # Set user so frps identifies this client by name (for dashboard matching) + lines.append(f"user = {client.name}") lines.append("authentication_method = token") lines.append(f"token = {token}") # Admin API for `frpc reload` command