Skip to content

Commit e6ec5a5

Browse files
authored
update release notes (fatedier#4055)
1 parent 43ba7bd commit e6ec5a5

File tree

8 files changed

+17
-7
lines changed

8 files changed

+17
-7
lines changed

Release.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### Notable Changes
2+
3+
* 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`.
4+
* 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`.
5+
16
### Features
27

38
* Proxy supports configuring annotations, which will be displayed in the frps dashboard.
9+
10+
### Changes
11+
12+
* 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.

cmd/frpc/sub/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func init() {
4646
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "./frpc.ini", "config file of frpc")
4747
rootCmd.PersistentFlags().StringVarP(&cfgDir, "config_dir", "", "", "config directory, run one frpc service for each file in config directory")
4848
rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, "version of frpc")
49-
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", false, "strict config parsing mode, unknown fields will cause an error")
49+
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", true, "strict config parsing mode, unknown fields will cause an errors")
5050
}
5151

5252
var rootCmd = &cobra.Command{

cmd/frps/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var (
4040
func init() {
4141
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file of frps")
4242
rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, "version of frps")
43-
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", false, "strict config parsing mode, unknown fields will cause error")
43+
rootCmd.PersistentFlags().BoolVarP(&strictConfigMode, "strict_config", "", true, "strict config parsing mode, unknown fields will cause errors")
4444

4545
config.RegisterServerConfigFlags(rootCmd, &serverCfg)
4646
}

pkg/config/v1/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (c *TypedClientPluginOptions) UnmarshalJSON(b []byte) error {
5757
}
5858

5959
if err := decoder.Decode(options); err != nil {
60-
return err
60+
return fmt.Errorf("unmarshal ClientPluginOptions error: %v", err)
6161
}
6262
c.ClientPluginOptions = options
6363
return nil

pkg/config/v1/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (c *TypedProxyConfig) UnmarshalJSON(b []byte) error {
186186
decoder.DisallowUnknownFields()
187187
}
188188
if err := decoder.Decode(configurer); err != nil {
189-
return err
189+
return fmt.Errorf("unmarshal ProxyConfig error: %v", err)
190190
}
191191
c.ProxyConfigurer = configurer
192192
return nil

pkg/config/v1/visitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (c *TypedVisitorConfig) UnmarshalJSON(b []byte) error {
114114
decoder.DisallowUnknownFields()
115115
}
116116
if err := decoder.Decode(configurer); err != nil {
117-
return err
117+
return fmt.Errorf("unmarshal VisitorConfig error: %v", err)
118118
}
119119
c.VisitorConfigurer = configurer
120120
return nil

pkg/util/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
package version
1616

17-
var version = "0.54.0"
17+
var version = "0.55.0"
1818

1919
func Full() string {
2020
return version

test/e2e/v1/plugin/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ var _ = ginkgo.Describe("[Feature: Client-Plugins]", func() {
3030
name = "%s"
3131
type = "tcp"
3232
remotePort = {{ .%s }}
33+
`+extra, proxyName, portName) + fmt.Sprintf(`
3334
[proxies.plugin]
3435
type = "unix_domain_socket"
3536
unixPath = "{{ .%s }}"
36-
`+extra, proxyName, portName, framework.UDSEchoServerAddr)
37+
`, framework.UDSEchoServerAddr)
3738
}
3839

3940
tests := []struct {

0 commit comments

Comments
 (0)