frp/pkg
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
..
auth support multiple subjects in oidc ping (#4475) 2024-10-12 18:52:47 +08:00
config Add STCP proxy and visitor support 2024-11-21 01:23:25 +08:00
errors rename models to pkg (#2005) 2020-09-23 13:49:14 +08:00
metrics use new log package (#4054) 2024-03-12 13:58:53 +08:00
msg support responseHeaders.set for proxy type http (#4192) 2024-04-29 15:53:45 +08:00
nathole use go1.23 (#4495) 2024-10-17 17:22:41 +08:00
plugin client plugin: added plugin tls2raw (#4341) 2024-07-25 14:28:17 +08:00
proto/udp lint by golangci-lint (#3080) 2022-08-29 01:02:53 +08:00
sdk/client added a 30s timeout for frpc subcommands to avoid long delays (#4359) 2024-07-30 18:12:22 +08:00
ssh client: add StatusExporter in service (#4182) 2024-04-25 20:20:39 +08:00
transport sshTunnelGateway refactor (#3784) 2023-11-22 14:35:37 +08:00
util use go1.23 (#4495) 2024-10-17 17:22:41 +08:00
virtual optimize some code (#3801) 2023-11-27 15:47:49 +08:00