v0.56.0
fatedier/frpv0.56.0Mar 21, 2024by fatedier
AI Summary
Adds support for Go template range syntax in configuration files for port mapping, custom health check headers, and fixes Android compatibility issues.
Key Highlights
- Range ports mapping using Go template syntax in TOML/YAML/JSON
- Custom request headers for health checks
- Android compatibility mode fixes
New Features
- Range ports mapping in configuration files using go template syntax
- Custom request headers for health checks
- Android compatibility mode to solve time zone and DNS issues
Full Release Notes
### 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`.
* Health check supports custom request headers.
* Enable compatibility mode for the Android system to solve the issues of incorrect log time caused by time zone problems and default DNS resolution failures.
### Fixes
* Fix the issue of incorrect interval time for rotating the log by day.
* Disable quic-go's ECN support by default. It may cause issues on certain operating systems.