[PR #505] [CLOSED] frpc 添加--user,--server-dynamic 支持从指定url获取frps服务器 #4206

Closed
opened 2026-05-05 14:37:41 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/505
Author: @chenall
Created: 11/1/2017
Status: Closed

Base: devHead: dev


📝 Commits (1)

  • 9dc574d frpc: new parameter 'server_dynamic',support --user,--server-dynamic command.

📊 Changes

3 files changed (+58 additions, -3 deletions)

View changed files

📝 client/control.go (+44 -0)
📝 cmd/frpc/main.go (+10 -1)
📝 models/config/client_common.go (+4 -2)

📄 Description

主要是为了支持动态IP地址,但是可以实现更多功能。
比如:
--server-dynamic=http://myserver/
启动会从 http://myserver/?user=<user_name> 获取服务器ip地址信息。

在服务端可以跟据不同来源返回不同的IP信息。


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/505 **Author:** [@chenall](https://github.com/chenall) **Created:** 11/1/2017 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`9dc574d`](https://github.com/fatedier/frp/commit/9dc574d49a8bd444271e43ad90f63fa9896f43e9) frpc: new parameter 'server_dynamic',support --user,--server-dynamic command. ### 📊 Changes **3 files changed** (+58 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `client/control.go` (+44 -0) 📝 `cmd/frpc/main.go` (+10 -1) 📝 `models/config/client_common.go` (+4 -2) </details> ### 📄 Description 主要是为了支持动态IP地址,但是可以实现更多功能。 比如: --server-dynamic=http://myserver/ 启动会从 http://myserver/?user=<user_name> 获取服务器ip地址信息。 在服务端可以跟据不同来源返回不同的IP信息。 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:37:41 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4206
No description provided.