mirror of
https://github.com/fatedier/frp.git
synced 2025-04-23 16:21:25 +00:00
frpc: support metadatas and annotations in frpc proxy commands
This commit is contained in:
parent
6542dcd4ed
commit
22154c22cb
@ -1,5 +1,3 @@
|
|||||||
### Features
|
### Features
|
||||||
|
|
||||||
* `tzdata` is installed by default in the container image, and the time zone can be set using the `TZ` environment variable.
|
* Support metadatas and annotations in frpc proxy commands.
|
||||||
* The `quic-bind-port` command line parameter is supported in frps, which specifies the port for accepting frpc connections using the QUIC protocol.
|
|
||||||
* The vhost HTTP proxy of frps supports the h2c protocol.
|
|
||||||
|
@ -106,6 +106,8 @@ func registerProxyBaseConfigFlags(cmd *cobra.Command, c *v1.ProxyBaseConfig, opt
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().StringVarP(&c.Name, "proxy_name", "n", "", "proxy name")
|
cmd.Flags().StringVarP(&c.Name, "proxy_name", "n", "", "proxy name")
|
||||||
|
cmd.Flags().StringToStringVarP(&c.Metadatas, "metadatas", "", nil, "metadata key-value pairs (e.g., key1=value1,key2=value2)")
|
||||||
|
cmd.Flags().StringToStringVarP(&c.Annotations, "annotations", "", nil, "annotation key-value pairs (e.g., key1=value1,key2=value2)")
|
||||||
|
|
||||||
if !options.sshMode {
|
if !options.sshMode {
|
||||||
cmd.Flags().StringVarP(&c.LocalIP, "local_ip", "i", "127.0.0.1", "local ip")
|
cmd.Flags().StringVarP(&c.LocalIP, "local_ip", "i", "127.0.0.1", "local ip")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user