From 2855ac71e3fc3fb2859f4c75f97f97e99f131f1b Mon Sep 17 00:00:00 2001 From: fatedier Date: Wed, 9 Oct 2024 14:04:30 +0800 Subject: [PATCH] frpc visitor: add --server-user option to specify server proxy username (#4477) --- Release.md | 7 +------ pkg/config/flags.go | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Release.md b/Release.md index d0414efe..fed36e24 100644 --- a/Release.md +++ b/Release.md @@ -1,8 +1,3 @@ ### Features -* Added a new plugin `tls2raw`: Enables TLS termination and forwarding of decrypted raw traffic to local service. -* Added a default timeout of 30 seconds for the frpc subcommands to prevent commands from being stuck for a long time due to network issues. - -### Fixes - -* Fixed the issue that when `loginFailExit = false`, the frpc stop command cannot be stopped correctly if the server is not successfully connected after startup. +* The frpc visitor command-line parameter adds the `--server-user` option to specify the username of the server-side proxy to connect to. diff --git a/pkg/config/flags.go b/pkg/config/flags.go index 98f617be..ce2582dd 100644 --- a/pkg/config/flags.go +++ b/pkg/config/flags.go @@ -140,6 +140,7 @@ func registerVisitorBaseConfigFlags(cmd *cobra.Command, c *v1.VisitorBaseConfig, cmd.Flags().BoolVarP(&c.Transport.UseCompression, "uc", "", false, "use compression") cmd.Flags().StringVarP(&c.SecretKey, "sk", "", "", "secret key") cmd.Flags().StringVarP(&c.ServerName, "server_name", "", "", "server name") + cmd.Flags().StringVarP(&c.ServerUser, "server-user", "", "", "server user") cmd.Flags().StringVarP(&c.BindAddr, "bind_addr", "", "", "bind addr") cmd.Flags().IntVarP(&c.BindPort, "bind_port", "", 0, "bind port") }