Documentation ¶
Index ¶
Constants ¶
View Source
const (
ServerUrlEnvName = "PIPING_SERVER"
)
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: os.Args[0], Short: "piping-tunnel", Long: "Tunnel over Piping Server", SilenceUsage: true, Example: fmt.Sprintf(` Normal: piping-tunnel server -p 22 aaa bbb piping-tunnel client -p 1022 aaa bbb Short: piping-tunnel server -p 22 aaa piping-tunnel client -p 1022 aaa Multiplexing: piping-tunnel server -p 22 --yamux aaa bbb piping-tunnel client -p 1022 --yamux aaa bbb SOCKS5 like VPN: piping-tunnel socks --yamux aaa bbb piping-tunnel client -p 1080 --yamux aaa bbb Environment variable: $%s for default Piping Server `, ServerUrlEnvName), RunE: func(cmd *cobra.Command, args []string) error { if showsVersion { fmt.Println(version.Version) return nil } return cmd.Help() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.