frp/client
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
..
event lint by golangci-lint (#3080) 2022-08-29 01:02:53 +08:00
health add header for http healthcheck (#4085) 2024-03-20 14:58:03 +08:00
proxy Add STCP proxy and visitor support 2024-11-21 01:23:25 +08:00
visitor Add STCP proxy and visitor support 2024-11-21 01:23:25 +08:00
admin_api.go return 504 instead of 404 for proxy type http request timeout (#4151) 2024-04-11 20:19:08 +08:00
connector.go return 504 instead of 404 for proxy type http request timeout (#4151) 2024-04-11 20:19:08 +08:00
control.go chore: fix function name (#4416) 2024-09-06 11:39:22 +08:00
service.go Fix loginFailExit = false bug (#4354) 2024-07-30 11:19:26 +08:00