[PR #3383] [MERGED] feat(nathole): add flag for STUN server in nathole discovery command #4737

Closed
opened 2026-05-05 14:47:46 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3383
Author: @fatedier
Created: 3/30/2023
Status: Merged
Merged: 3/30/2023
Merged by: @fatedier

Base: devHead: nathole


📝 Commits (1)

  • 2ff2223 feat(nathole): add flag for STUN server in nathole discovery command

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 cmd/frpc/sub/nathole.go (+7 -0)

📄 Description

Summary

🤖 Generated by Copilot at 2ff2223

Added an option to use a custom STUN server for nathole in frpc. This allows more flexibility and control over the direct connection between frp clients.

WHY

Walkthrough

🤖 Generated by Copilot at 2ff2223

  • Add a global variable to store the STUN server address for nathole (link)
  • Add a persistent flag to the nathole command to allow the user to specify the STUN server address for nathole (link)
  • Assign the cfg.NatHoleSTUNServer field the value of the global variable or the frp server value, depending on which one is not empty (link)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/3383 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 3/30/2023 **Status:** ✅ Merged **Merged:** 3/30/2023 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `nathole` --- ### 📝 Commits (1) - [`2ff2223`](https://github.com/fatedier/frp/commit/2ff2223937b37547f41a84928ab3436798cfea58) feat(nathole): add flag for STUN server in nathole discovery command ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/frpc/sub/nathole.go` (+7 -0) </details> ### 📄 Description ### Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 2ff2223</samp> Added an option to use a custom STUN server for nathole in `frpc`. This allows more flexibility and control over the direct connection between frp clients. ### WHY <!-- author to complete --> ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at 2ff2223</samp> * Add a global variable to store the STUN server address for nathole ([link](https://github.com/fatedier/frp/pull/3383/files?diff=unified&w=0#diff-5ac4ee81516dfc6b3f0a0abd3e447ee4a2d03d59a7a62be497d7dbf208c3da0dR29-R30)) * Add a persistent flag to the nathole command to allow the user to specify the STUN server address for nathole ([link](https://github.com/fatedier/frp/pull/3383/files?diff=unified&w=0#diff-5ac4ee81516dfc6b3f0a0abd3e447ee4a2d03d59a7a62be497d7dbf208c3da0dR36-R37)) * Assign the cfg.NatHoleSTUNServer field the value of the global variable or the frp server value, depending on which one is not empty ([link](https://github.com/fatedier/frp/pull/3383/files?diff=unified&w=0#diff-5ac4ee81516dfc6b3f0a0abd3e447ee4a2d03d59a7a62be497d7dbf208c3da0dR54-R56)) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:47:46 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4737
No description provided.