Michael Hanselmann
8a0fd2acd5
Use text/template instead of html/template for config pre-processing
...
Commit c95311d1
added support for multiple config formats in addition to
pre-processing using Go's built-in templating system. The
`html/template` package is equivalent to `text/template`, except that
the former automatically escapes characters for inclusion in HTML.
Configurations aren't plain text, but they're also certainly no HTML.
The difference between the packages is noticeable when using `printf
"%q"` for quoting of strings. An example from the included unittest:
* `html/template`: `key = "with space"`
* `text/template`: `key = "with space"`
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2025-02-04 22:30:05 +01:00
fatedier
27db6217ec
frpc: support metadatas and annotations in frpc proxy commands ( #4623 )
2025-01-06 14:22:57 +08:00
Gabriel Marin
092e5d3f94
client, pkg, server, test: replaced 'interface{}' with 'any' ( #4611 )
2025-01-02 11:24:08 +08:00
fatedier
f47d8ab97f
update Release.md ( #4589 )
2024-12-16 19:33:58 +08:00
Sword
bb912d6c37
enable h2c for vhost server ( #4582 )
2024-12-13 14:37:07 +08:00
Guiwoo Park
0358113948
samber lo version up ( #4569 )
2024-12-02 11:56:52 +08:00
fatedier
4383756fd4
frps: add support for quic-bind-port parameter in frps ( #4519 )
2024-10-30 15:12:31 +08:00
fatedier
f7a06cbe61
use go1.23 ( #4495 )
2024-10-17 17:22:41 +08:00
RobKenis
2466e65f43
support multiple subjects in oidc ping ( #4475 )
...
Resolves : #4466
2024-10-12 18:52:47 +08:00
fatedier
2855ac71e3
frpc visitor: add --server-user option to specify server proxy username ( #4477 )
2024-10-09 14:04:30 +08:00
fatedier
ae73ec2fed
added a 30s timeout for frpc subcommands to avoid long delays ( #4359 )
2024-07-30 18:12:22 +08:00
fatedier
69cc422edf
client plugin: added plugin tls2raw ( #4341 )
2024-07-25 14:28:17 +08:00
fatedier
b4d5d8c756
plugin https2http&https2https: return 421 if host not match sni ( #4323 )
2024-07-09 10:50:16 +08:00
fatedier
939c490768
Add http2http client plugin with hostHeaderRewrite and requestHeaders support ( #4275 )
2024-06-12 17:30:10 +08:00
fatedier
77990c31ef
fix ini configuration default values ( #4250 )
2024-05-30 10:36:30 +08:00
fatedier
e680acf42d
android: only use google dns server when the default dns server cannot be obtained ( #4236 )
2024-05-23 16:09:58 +08:00
fatedier
522e2c94c1
config: return error if plugin type is empty ( #4235 )
2024-05-23 14:52:12 +08:00
fatedier
301515d2e8
update the default value of transport.tcpMuxKeepaliveInterval ( #4231 )
2024-05-21 12:00:35 +08:00
fatedier
f0442d0cd5
plugin: fix http2 not enabled for https2http and https2https plugin ( #4230 )
2024-05-21 11:26:52 +08:00
fatedier
92cb0b30c2
update version ( #4204 )
2024-05-07 18:05:36 +08:00
fatedier
e81b36c5ba
support responseHeaders.set for proxy type http ( #4192 )
2024-04-29 15:53:45 +08:00
fatedier
ee3892798d
change default value of heartbeat interval and timeout when tcpmux enabled ( #4186 )
2024-04-28 20:48:44 +08:00
fatedier
405969085f
client: add StatusExporter in service ( #4182 )
2024-04-25 20:20:39 +08:00
fatedier
dd7e2e8473
return 504 instead of 404 for proxy type http request timeout ( #4151 )
2024-04-11 20:19:08 +08:00
fatedier
d2d03a8fd9
bump deps version ( #4136 )
2024-04-09 11:39:21 +08:00
fatedier
590ccda677
fix x-forwarded-for header ( #4111 )
2024-03-28 16:47:27 +08:00
fatedier
f16ef00975
set CompatibilityMode for android ( #4091 )
2024-03-21 17:34:09 +08:00
fatedier
b36f3834eb
use math/rand/v2 ( #4020 )
2024-03-20 15:48:31 +08:00
fatedier
c08be0fd92
update release notes ( #4086 )
2024-03-20 15:16:01 +08:00
Kaive Young
bc5fb91c05
add header for http healthcheck ( #4085 )
2024-03-20 14:58:03 +08:00
fatedier
acf33db4e4
update release notes ( #4074 )
2024-03-15 17:50:58 +08:00
fatedier
3585f5c0c0
support range ports mapping by go template ( #4073 )
2024-03-15 17:23:16 +08:00
fatedier
e0c979e98e
fix release scripts ( #4057 )
2024-03-12 17:37:14 +08:00
fatedier
e6ec5a509b
update release notes ( #4055 )
2024-03-12 15:14:13 +08:00
fatedier
43ba7bd338
use new log package ( #4054 )
2024-03-12 13:58:53 +08:00
fatedier
7ae3719b82
cleanup code ( #4019 )
2024-02-22 21:04:21 +08:00
fatedier
b2b580be22
update kcp-go package ( #4009 )
2024-02-20 16:11:37 +08:00
fatedier
3e0c78233a
use std slices package ( #4008 )
2024-02-20 12:01:41 +08:00
fatedier
b6361fb143
use go built-in min & max functions to replace lo.Min and lo.Max ( #4007 )
2024-02-19 21:27:56 +08:00
fatedier
adb04e81e7
bump pion/stun to v2 ( #4006 )
2024-02-19 21:13:20 +08:00
fatedier
518ca2ceb2
ReverseProxy: use Rewrite to replace Director ( #4005 )
...
* display go version in make
* ReverseProxy: use Rewrite to replace Director
2024-02-19 21:04:29 +08:00
fatedier
3529158f31
proxy supports configuring annotations, which will be displayed in the frps dashboard ( #4000 )
2024-02-19 16:28:27 +08:00
Gerhard Tan
9152c59570
fix nil map error when using plugin headers in legacy format ( #3996 )
...
* fix nil map error when using plugin headers in legacy format
* create map on demand
* better initialization
2024-02-19 13:03:37 +08:00
fatedier
e8ace492a5
bump version to 0.54.0 ( #3967 )
2024-02-01 12:52:25 +08:00
fatedier
1c8bc0bfa8
make the host/domain matching case-insensitive ( #3966 )
2024-02-01 11:53:52 +08:00
fatedier
b31c67d7c0
web: support to clear offline proxies data on dashboard ( #3963 )
2024-02-01 10:54:57 +08:00
fatedier
d01f4a3ec1
cmd: use hyphen instead of underscore ( #3898 )
2023-12-27 10:44:13 +08:00
Remember
596262d5e0
upgrade go-jose and crypto version ( #3895 )
2023-12-26 10:49:46 +08:00
fatedier
2a9a7a0e4a
fix login retry interval ( #3879 )
2023-12-21 21:38:32 +08:00
fatedier
5e77c8e2d3
fix lint ( #3877 )
2023-12-21 21:19:49 +08:00