MCPcopy Create free account
hub / github.com/M1r0ku/frp-Modify / init

Function init

frp-dev/cmd/frpc/sub/https.go:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func init() {
29 RegisterCommonFlags(httpsCmd)
30
31 httpsCmd.PersistentFlags().StringVarP(&proxyName, "proxy_name", "n", "", "proxy name")
32 httpsCmd.PersistentFlags().StringVarP(&localIP, "local_ip", "i", "127.0.0.1", "local ip")
33 httpsCmd.PersistentFlags().IntVarP(&localPort, "local_port", "l", 0, "local port")
34 httpsCmd.PersistentFlags().StringVarP(&customDomains, "custom_domain", "d", "", "custom domain")
35 httpsCmd.PersistentFlags().StringVarP(&subDomain, "sd", "", "", "sub domain")
36 httpsCmd.PersistentFlags().BoolVarP(&useEncryption, "ue", "", false, "use encryption")
37 httpsCmd.PersistentFlags().BoolVarP(&useCompression, "uc", "", false, "use compression")
38
39 rootCmd.AddCommand(httpsCmd)
40}
41
42var httpsCmd = &cobra.Command{
43 Use: "https",

Callers

nothing calls this directly

Calls 1

RegisterCommonFlagsFunction · 0.70

Tested by

no test coverage detected