From 4383756fd4e15d7f03d1aa6b13cdf93dbafe40d9 Mon Sep 17 00:00:00 2001 From: fatedier Date: Wed, 30 Oct 2024 15:12:31 +0800 Subject: [PATCH] frps: add support for quic-bind-port parameter in frps (#4519) --- Release.md | 1 + pkg/config/flags.go | 1 + 2 files changed, 2 insertions(+) diff --git a/Release.md b/Release.md index aea4b71b..34f72a29 100644 --- a/Release.md +++ b/Release.md @@ -1,3 +1,4 @@ ### Features * `tzdata` is installed by default in the container image, and the time zone can be set using the `TZ` environment variable. +* The `quic-bind-port` command line parameter is supported in frps, which specifies the port for accepting frpc connections using the QUIC protocol. \ No newline at end of file diff --git a/pkg/config/flags.go b/pkg/config/flags.go index ce2582dd..f9d9e3e4 100644 --- a/pkg/config/flags.go +++ b/pkg/config/flags.go @@ -227,6 +227,7 @@ func RegisterServerConfigFlags(cmd *cobra.Command, c *v1.ServerConfig, opts ...R cmd.PersistentFlags().StringVarP(&c.BindAddr, "bind_addr", "", "0.0.0.0", "bind address") cmd.PersistentFlags().IntVarP(&c.BindPort, "bind_port", "p", 7000, "bind port") cmd.PersistentFlags().IntVarP(&c.KCPBindPort, "kcp_bind_port", "", 0, "kcp bind udp port") + cmd.PersistentFlags().IntVarP(&c.QUICBindPort, "quic_bind_port", "", 0, "quic bind udp port") cmd.PersistentFlags().StringVarP(&c.ProxyBindAddr, "proxy_bind_addr", "", "0.0.0.0", "proxy bind address") cmd.PersistentFlags().IntVarP(&c.VhostHTTPPort, "vhost_http_port", "", 0, "vhost http port") cmd.PersistentFlags().IntVarP(&c.VhostHTTPSPort, "vhost_https_port", "", 0, "vhost https port")