frp/pkg/config/v1
psbelejden f9e8b3a3fa Add STCP proxy and visitor support
Implement a simplified version of STCP functionality.

* **Client Proxy Configuration and Handling**
  - Add `STCPProxyConfig` to the `pxyConfs` slice in `client/proxy/general_tcp.go`.

* **Client Visitor Configuration and Handling**
  - Add `STCPVisitorConfig` to the `cfg` struct in `client/visitor/stcp.go`.

* **Command Registration and Initialization**
  - Add `STCP` to the `proxyTypes` and `visitorTypes` slices in `cmd/frpc/sub/proxy.go`.

* **Configuration Examples**
  - Add example configurations for `STCP` proxy and visitor in `conf/frpc_full_example.toml`.
  - Add example configurations for `STCP` proxy and visitor in `conf/legacy/frpc_legacy_full.ini`.

* **Configuration Structures**
  - Add `STCPProxyConfig` struct and include it in the `proxyConfigTypeMap` in `pkg/config/v1/proxy.go`.
  - Add `STCPVisitorConfig` struct and include it in the `visitorConfigTypeMap` in `pkg/config/v1/visitor.go`.

* **Configuration Validation**
  - Add validation for `STCPProxyConfig` in `pkg/config/v1/validation/proxy.go`.
  - Add validation for `STCPVisitorConfig` in `pkg/config/v1/validation/visitor.go`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/fatedier/frp?shareId=XXXX-XXXX-XXXX-XXXX).
2024-11-21 01:23:25 +08:00
..
validation Add STCP proxy and visitor support 2024-11-21 01:23:25 +08:00
api.go support yaml/json/toml configuration format, make ini deprecated (#3599) 2023-09-06 10:18:02 +08:00
client_test.go natHoleSTUNServer set default value (#3664) 2023-10-11 15:46:22 +08:00
client.go update the default value of transport.tcpMuxKeepaliveInterval (#4231) 2024-05-21 12:00:35 +08:00
common.go add header for http healthcheck (#4085) 2024-03-20 14:58:03 +08:00
plugin.go client plugin: added plugin tls2raw (#4341) 2024-07-25 14:28:17 +08:00
proxy_test.go support yaml/json/toml configuration format, make ini deprecated (#3599) 2023-09-06 10:18:02 +08:00
proxy.go Add STCP proxy and visitor support 2024-11-21 01:23:25 +08:00
server_test.go code optimization (#3625) 2023-09-20 15:18:50 +08:00
server.go update the default value of transport.tcpMuxKeepaliveInterval (#4231) 2024-05-21 12:00:35 +08:00
visitor.go Add STCP proxy and visitor support 2024-11-21 01:23:25 +08:00