mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #3381] [MERGED] frpc: support nathole discover #4735
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#4735
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/3381
Author: @fatedier
Created: 3/30/2023
Status: ✅ Merged
Merged: 3/30/2023
Merged by: @fatedier
Base:
dev← Head:nathole📝 Commits (1)
4d5bc76frpc: support nathole discover📊 Changes
13 files changed (+520 additions, -16 deletions)
View changed files
➕
cmd/frpc/sub/nathole.go(+86 -0)📝
conf/frpc_full.ini(+7 -0)📝
go.mod(+4 -2)📝
go.sum(+22 -3)📝
pkg/config/client.go(+6 -0)📝
pkg/config/client_test.go(+1 -0)📝
pkg/msg/ctl.go(+4 -0)📝
pkg/msg/msg.go(+14 -0)➕
pkg/nathole/classify.go(+74 -0)➕
pkg/nathole/discovery.go(+192 -0)📝
pkg/nathole/nathole.go(+61 -10)➕
pkg/nathole/utils.go(+48 -0)📝
server/service.go(+1 -1)📄 Description
Summary
🤖 Generated by Copilot at 1cf2a26
This pull request adds nathole discovery, a feature that allows clients to communicate through NAT devices without port forwarding, to the frp project. It updates the dependencies, configuration, message types, and controller logic for nathole discovery. It also adds a new subcommand for frpc to discover nathole information and some utility and test functions. The main files affected are
go.mod,pkg/config/client.go,pkg/msg/msg.go,pkg/nathole/nathole.go,cmd/frpc/sub/nathole.go, andserver/service.go.Walkthrough
🤖 Generated by Copilot at 1cf2a26
server/service.go(link)github.com/fatedier/golibandgithub.com/stretchr/testifyto newer versions (link, link)github.com/pion/stunfor using the stun protocol for nathole discovery (link, link)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.