Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31b44c1

Browse files
authored
Merge pull request #4700 from fatedier/dev
bump version
2 parents 2a7aa69 + 773169e commit 31b44c1

File tree

35 files changed

+159
-106
lines changed

35 files changed

+159
-106
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
go-version-latest:
44
docker:
5-
- image: cimg/go:1.22-node
5+
- image: cimg/go:1.23-node
66
resource_class: large
77
steps:
88
- checkout

.github/workflows/stale.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
steps:
2222
- uses: actions/stale@v9
2323
with:
24-
stale-issue-message: 'Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.'
25-
stale-pr-message: "PRs go stale after 21d of inactivity. Stale PRs rot after an additional 7d of inactivity and eventually close."
24+
stale-issue-message: 'Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.'
25+
stale-pr-message: "PRs go stale after 14d of inactivity. Stale PRs rot after an additional 3d of inactivity and eventually close."
2626
stale-issue-label: 'lifecycle/stale'
2727
exempt-issue-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned'
2828
stale-pr-label: 'lifecycle/stale'
2929
exempt-pr-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned'
30-
days-before-stale: 21
31-
days-before-close: 7
30+
days-before-stale: 14
31+
days-before-close: 3
3232
debug-only: ${{ github.event.inputs.debug-only }}
3333
exempt-all-pr-milestones: true
3434
exempt-all-pr-assignees: true

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ linters-settings:
4848
check-blank: false
4949
govet:
5050
# report about shadowed variables
51-
check-shadowing: false
51+
disable:
52+
- shadow
5253
maligned:
5354
# print struct with more effective memory layout or not, false by default
5455
suggest-new: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ frp also offers a P2P connect mode.
9797
* [Client Plugins](#client-plugins)
9898
* [Server Manage Plugins](#server-manage-plugins)
9999
* [SSH Tunnel Gateway](#ssh-tunnel-gateway)
100-
* [Releated Projects](#releated-projects)
100+
* [Related Projects](#related-projects)
101101
* [Contributing](#contributing)
102102
* [Donation](#donation)
103103
* [GitHub Sponsors](#github-sponsors)
@@ -1260,7 +1260,7 @@ frpc tcp --proxy_name "test-tcp" --local_ip 127.0.0.1 --local_port 8080 --remote
12601260

12611261
Please refer to this [document](/doc/ssh_tunnel_gateway.md) for more information.
12621262

1263-
## Releated Projects
1263+
## Related Projects
12641264

12651265
* [gofrp/plugin](https://github.com/gofrp/plugin) - A repository for frp plugins that contains a variety of plugins implemented based on the frp extension mechanism, meeting the customization needs of different scenarios.
12661266
* [gofrp/tiny-frpc](https://github.com/gofrp/tiny-frpc) - A lightweight version of the frp client (around 3.5MB at minimum) implemented using the ssh protocol, supporting some of the most commonly used features, suitable for devices with limited resources.

Release.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### Features
22

3-
* `tzdata` is installed by default in the container image, and the time zone can be set using the `TZ` environment variable.
4-
* The `quic-bind-port` command line parameter is supported in frps, which specifies the port for accepting frpc connections using the QUIC protocol.
5-
* The vhost HTTP proxy of frps supports the h2c protocol.
3+
* Support metadatas and annotations in frpc proxy commands.
4+
5+
### Fixes
6+
7+
* Properly release resources in service.Close() to prevent resource leaks when used as a library.

client/event/event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
var ErrPayloadType = errors.New("error payload type")
1010

11-
type Handler func(payload interface{}) error
11+
type Handler func(payload any) error
1212

1313
type StartProxyPayload struct {
1414
NewProxyMsg *msg.NewProxy

client/proxy/proxy_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (pm *Manager) HandleWorkConn(name string, workConn net.Conn, m *msg.StartWo
9696
}
9797
}
9898

99-
func (pm *Manager) HandleEvent(payload interface{}) error {
99+
func (pm *Manager) HandleEvent(payload any) error {
100100
var m msg.Message
101101
switch e := payload.(type) {
102102
case *event.StartProxyPayload:

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/fatedier/frp
22

3-
go 1.22.0
3+
go 1.23.0
44

55
require (
66
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
77
github.com/coreos/go-oidc/v3 v3.10.0
8-
github.com/fatedier/golib v0.5.0
8+
github.com/fatedier/golib v0.5.1
99
github.com/google/uuid v1.6.0
1010
github.com/gorilla/mux v1.8.1
1111
github.com/gorilla/websocket v1.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
2121
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
2222
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
2323
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
24-
github.com/fatedier/golib v0.5.0 h1:hNcH7hgfIFqVWbP+YojCCAj4eO94pPf4dEF8lmq2jWs=
25-
github.com/fatedier/golib v0.5.0/go.mod h1:W6kIYkIFxHsTzbgqg5piCxIiDo4LzwgTY6R5W8l9NFQ=
24+
github.com/fatedier/golib v0.5.1 h1:hcKAnaw5mdI/1KWRGejxR+i1Hn/NvbY5UsMKDr7o13M=
25+
github.com/fatedier/golib v0.5.1/go.mod h1:W6kIYkIFxHsTzbgqg5piCxIiDo4LzwgTY6R5W8l9NFQ=
2626
github.com/fatedier/yamux v0.0.0-20230628132301-7aca4898904d h1:ynk1ra0RUqDWQfvFi5KtMiSobkVQ3cNc0ODb8CfIETo=
2727
github.com/fatedier/yamux v0.0.0-20230628132301-7aca4898904d/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
2828
github.com/go-jose/go-jose/v4 v4.0.1 h1:QVEPDE3OluqXBQZDcnNvQrInro2h0e4eqNbnZSWqS6U=

pkg/config/flags.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ func registerProxyBaseConfigFlags(cmd *cobra.Command, c *v1.ProxyBaseConfig, opt
106106
}
107107

108108
cmd.Flags().StringVarP(&c.Name, "proxy_name", "n", "", "proxy name")
109+
cmd.Flags().StringToStringVarP(&c.Metadatas, "metadatas", "", nil, "metadata key-value pairs (e.g., key1=value1,key2=value2)")
110+
cmd.Flags().StringToStringVarP(&c.Annotations, "annotations", "", nil, "annotation key-value pairs (e.g., key1=value1,key2=value2)")
109111

110112
if !options.sshMode {
111113
cmd.Flags().StringVarP(&c.LocalIP, "local_ip", "i", "127.0.0.1", "local ip")

0 commit comments

Comments
 (0)