fix(addFrpcProxy): modify frpc toml config key to correct
This commit is contained in:
+3
-3
@@ -139,9 +139,9 @@ func addFrpcProxy(configContent string, info FrpcProxyInfo) (string, error) {
|
|||||||
proxy := map[string]interface{}{
|
proxy := map[string]interface{}{
|
||||||
"name": info.Name,
|
"name": info.Name,
|
||||||
"type": info.Type,
|
"type": info.Type,
|
||||||
"local_ip": info.LocalIP,
|
"localIP": info.LocalIP,
|
||||||
"local_port": info.LocalPort,
|
"localPort": info.LocalPort,
|
||||||
"remote_port": info.RemotePort,
|
"remotePort": info.RemotePort,
|
||||||
}
|
}
|
||||||
|
|
||||||
config.Proxies = append(config.Proxies, proxy)
|
config.Proxies = append(config.Proxies, proxy)
|
||||||
|
|||||||
Reference in New Issue
Block a user