mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
update release notes (#4055)
This commit is contained in:
parent
43ba7bd338
commit
e6ec5a509b
@ -1,3 +1,12 @@
|
|||||||
|
### Notable Changes
|
||||||
|
|
||||||
|
* The minimum supported Go version has been updated to `1.22`. In the new version of Go, the default minimum supported TLS version has been changed to `TLS 1.2`.
|
||||||
|
* The default value of `--strict-config` has been changed from `false` to `true`. If your configuration file uses a non-existent configuration item or has a spelling error, the application will throw an error. This startup parameter was introduced in version `v0.53.0`. If you wish to continue using the old behavior, you need to explicitly set `--strict-config=false`.
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* Proxy supports configuring annotations, which will be displayed in the frps dashboard.
|
* Proxy supports configuring annotations, which will be displayed in the frps dashboard.
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
* Removed dependencies on the forked version of kcp-go and beego log, kcp-go now uses the upstream version, and golib/log replaces beego log.
|
||||||
|
@ -46,7 +46,7 @@ func init() {
|
|||||||
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "./frpc.ini", "config file of frpc")
|
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "./frpc.ini", "config file of frpc")
|
||||||
rootCmd.PersistentFlags().StringVarP(&cfgDir, "config_dir", "", "", "config directory, run one frpc service for each file in config directory")
|
rootCmd.PersistentFlags().StringVarP(&cfgDir, "config_dir", "", "", "config directory, run one frpc service for each file in config directory")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, "version of frpc")
|
rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, "version of frpc")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", false, "strict config parsing mode, unknown fields will cause an error")
|
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", true, "strict config parsing mode, unknown fields will cause an errors")
|
||||||
}
|
}
|
||||||
|
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
|
@ -40,7 +40,7 @@ var (
|
|||||||
func init() {
|
func init() {
|
||||||
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file of frps")
|
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file of frps")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, "version of frps")
|
rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, "version of frps")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", false, "strict config parsing mode, unknown fields will cause error")
|
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", true, "strict config parsing mode, unknown fields will cause errors")
|
||||||
|
|
||||||
config.RegisterServerConfigFlags(rootCmd, &serverCfg)
|
config.RegisterServerConfigFlags(rootCmd, &serverCfg)
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ func (c *TypedClientPluginOptions) UnmarshalJSON(b []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := decoder.Decode(options); err != nil {
|
if err := decoder.Decode(options); err != nil {
|
||||||
return err
|
return fmt.Errorf("unmarshal ClientPluginOptions error: %v", err)
|
||||||
}
|
}
|
||||||
c.ClientPluginOptions = options
|
c.ClientPluginOptions = options
|
||||||
return nil
|
return nil
|
||||||
|
@ -186,7 +186,7 @@ func (c *TypedProxyConfig) UnmarshalJSON(b []byte) error {
|
|||||||
decoder.DisallowUnknownFields()
|
decoder.DisallowUnknownFields()
|
||||||
}
|
}
|
||||||
if err := decoder.Decode(configurer); err != nil {
|
if err := decoder.Decode(configurer); err != nil {
|
||||||
return err
|
return fmt.Errorf("unmarshal ProxyConfig error: %v", err)
|
||||||
}
|
}
|
||||||
c.ProxyConfigurer = configurer
|
c.ProxyConfigurer = configurer
|
||||||
return nil
|
return nil
|
||||||
|
@ -114,7 +114,7 @@ func (c *TypedVisitorConfig) UnmarshalJSON(b []byte) error {
|
|||||||
decoder.DisallowUnknownFields()
|
decoder.DisallowUnknownFields()
|
||||||
}
|
}
|
||||||
if err := decoder.Decode(configurer); err != nil {
|
if err := decoder.Decode(configurer); err != nil {
|
||||||
return err
|
return fmt.Errorf("unmarshal VisitorConfig error: %v", err)
|
||||||
}
|
}
|
||||||
c.VisitorConfigurer = configurer
|
c.VisitorConfigurer = configurer
|
||||||
return nil
|
return nil
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
package version
|
package version
|
||||||
|
|
||||||
var version = "0.54.0"
|
var version = "0.55.0"
|
||||||
|
|
||||||
func Full() string {
|
func Full() string {
|
||||||
return version
|
return version
|
||||||
|
@ -30,10 +30,11 @@ var _ = ginkgo.Describe("[Feature: Client-Plugins]", func() {
|
|||||||
name = "%s"
|
name = "%s"
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
remotePort = {{ .%s }}
|
remotePort = {{ .%s }}
|
||||||
|
`+extra, proxyName, portName) + fmt.Sprintf(`
|
||||||
[proxies.plugin]
|
[proxies.plugin]
|
||||||
type = "unix_domain_socket"
|
type = "unix_domain_socket"
|
||||||
unixPath = "{{ .%s }}"
|
unixPath = "{{ .%s }}"
|
||||||
`+extra, proxyName, portName, framework.UDSEchoServerAddr)
|
`, framework.UDSEchoServerAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user