Files
cftunnel/cmd/relay.go
T
晴天 d976ee2c33 feat: relay 模式 + SSH 远程部署 + 官网移动端适配 + 国内镜像源
- 新增 relay 模式: frp 中继引擎,TCP/UDP 全协议穿透
- 新增 relay server setup: SSH 远程安装 frps 服务端
- 新增 sshutil 包: 纯 Go SSH 连接/远程执行
- 官网: 移动端响应式适配 (480/768/900px 三断点)
- 官网: 修复 Star 按钮样式,特性卡片 11→12
- install.sh: 国内镜像源加速 (ghfast/gh-proxy/ghproxy)
- Docker Compose + install-relay.sh 服务端部署方案
2026-02-26 22:29:56 +08:00

14 lines
385 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package cmd
import "github.com/spf13/cobra"
var relayCmd = &cobra.Command{
Use: "relay",
Short: "中继模式 — 自建服务器全协议穿透(TCP/UDP/HTTP/...",
Long: "通过自建中继服务器实现全协议穿透,支持 TCP、UDP、HTTP、HTTPS、STCP 等。\n需要一台公网服务器运行 frps 服务端。",
}
func init() {
rootCmd.AddCommand(relayCmd)
}