From acf33db4e4b6c9cf9182d93280299010637b6324 Mon Sep 17 00:00:00 2001 From: fatedier Date: Fri, 15 Mar 2024 17:50:58 +0800 Subject: [PATCH] update release notes (#4074) --- Release.md | 18 ++++++++++++++++++ pkg/util/version/version.go | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Release.md b/Release.md index a699be85..f106d802 100644 --- a/Release.md +++ b/Release.md @@ -1,3 +1,21 @@ +### Features + +* Support range ports mapping in TOML/YAML/JSON configuration file by using go template syntax. + + For example: + + ``` + {{- range $_, $v := parseNumberRangePair "6000-6006,6007" "6000-6006,6007" }} + [[proxies]] + name = "tcp-{{ $v.First }}" + type = "tcp" + localPort = {{ $v.First }} + remotePort = {{ $v.Second }} + {{- end }} + ``` + + This will create 8 proxies such as `tcp-6000, tcp-6001, ... tcp-6007`. + ### Fixes * Fix the issue of incorrect interval time for rotating the log by day. diff --git a/pkg/util/version/version.go b/pkg/util/version/version.go index f5bac1bc..90af7813 100644 --- a/pkg/util/version/version.go +++ b/pkg/util/version/version.go @@ -14,7 +14,7 @@ package version -var version = "0.55.1" +var version = "0.56.0" func Full() string { return version