fix(proxy): add "oldName" && "newName" paras to fix unable to modify proxy name
This commit is contained in:
+6
-4
@@ -1063,7 +1063,8 @@ X-Timestamp: 1704067200000
|
||||
{
|
||||
"instanceID": "1",
|
||||
"proxyInfo": {
|
||||
"name": "ssh_proxy",
|
||||
"oldName": "ssh_proxy",
|
||||
"newName": "ssh_proxy123",
|
||||
"type": "tcp",
|
||||
"localIP": "127.0.0.1",
|
||||
"localPort": "22",
|
||||
@@ -1080,7 +1081,8 @@ X-Timestamp: 1704067200000
|
||||
| Field | Type | Required | Description |
|
||||
|-------|------|----------|-------------|
|
||||
| instanceID | string | Yes | Instance ID (the ID of the frpc instance) |
|
||||
| proxyInfo.name | string | Yes | Proxy name (used to identify which proxy to modify) |
|
||||
| proxyInfo.oldName | string | Yes | Proxy old name (used to identify which proxy to modify) |
|
||||
| proxyInfo.newName | string | Yes | Proxy new name (used to identify which proxy to modify to) |
|
||||
| proxyInfo.type | string | Yes | Proxy type (e.g., tcp, udp, http, https) |
|
||||
| proxyInfo.localIP | string | Yes | Local IP address to forward to |
|
||||
| proxyInfo.localPort | string | Yes | Local port to forward from |
|
||||
@@ -1094,7 +1096,7 @@ X-Timestamp: 1704067200000
|
||||
"data": {
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_my_frpc.toml",
|
||||
"proxyName": "ssh_proxy"
|
||||
"proxyName": "ssh_proxy123"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -1111,7 +1113,7 @@ The proxy configuration in the config file will be updated to the following form
|
||||
|
||||
```toml
|
||||
[[proxies]]
|
||||
name = ssh_proxy
|
||||
name = ssh_proxy123
|
||||
type = tcp
|
||||
local_ip = 127.0.0.1
|
||||
local_port = 22
|
||||
|
||||
Reference in New Issue
Block a user