mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #3489] [MERGED] fix the issue of duplicate xtcp proxies will cause the previous proxy to become ineffective #4761
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4761
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/3489
Author: @fatedier
Created: 6/15/2023
Status: ✅ Merged
Merged: 6/15/2023
Merged by: @fatedier
Base:
dev← Head:code📝 Commits (1)
e61f609fix the issue of duplicate xtcp proxies will cause the previous proxy to become ineffective📊 Changes
5 files changed (+24 additions, -7 deletions)
View changed files
📝
pkg/nathole/controller.go(+5 -3)📝
server/control.go(+5 -0)📝
server/proxy/proxy.go(+7 -0)📝
server/proxy/xtcp.go(+4 -1)📝
test/e2e/basic/server.go(+3 -3)📄 Description
Summary
🤖 Generated by Copilot at
e61f609Improved validation and error handling for proxy names in
nathole,control, andxtcppackages. Changed test ports to avoid conflicts withnatholepackage.WHY
Walkthrough
🤖 Generated by Copilot at
e61f609pxyManagerand theclientCfgsmap (link, link, link)ListenClientfunction in thenatholepackage if the proxy name is invalid or duplicated and handle it in theRunfunction in thextcppackage (link, link)test/e2e/basic/server.gofile to avoid the port conflict with thenatholepackage (link, link)test/e2e/basic/server.gofile to test the case when the client tries to access a port that is not allowed by the server (link)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.