[GH-ISSUE #3828] 现在支持带密码的stun服务器吗 #3042

Closed
opened 2026-05-05 13:58:04 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @onthehide288 on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3828

Describe the feature request

我用coturn搭建了stun服务器,不想公开,设置了密码,不知道frp的文档该如何添加密码

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @onthehide288 on GitHub (Dec 6, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3828 ### Describe the feature request 我用coturn搭建了stun服务器,不想公开,设置了密码,不知道frp的文档该如何添加密码 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@wyaode commented on GitHub (Dec 6, 2023):

文档应该是不支持的,得改一下源代码,后面做到配置文件里面去比较好
把原先的stun.Build(stun.TransactionID, stun.BindingRequest)改为这个
nonce和realm用coturn里面的配置即可
const (
username = "user"
password = "secret"
)
request, err = stun.Build(stun.TransactionID, stun.BindingRequest,
stun.NewUsername(username), nonce, realm,
stun.NewLongTermIntegrity(username, realm.String(), password),
stun.Fingerprint,
)

<!-- gh-comment-id:1842466297 --> @wyaode commented on GitHub (Dec 6, 2023): 文档应该是不支持的,得改一下源代码,后面做到配置文件里面去比较好 把原先的stun.Build(stun.TransactionID, stun.BindingRequest)改为这个 nonce和realm用coturn里面的配置即可 const ( username = "user" password = "secret" ) request, err = stun.Build(stun.TransactionID, stun.BindingRequest, stun.NewUsername(username), nonce, realm, stun.NewLongTermIntegrity(username, realm.String(), password), stun.Fingerprint, )
Author
Owner

@onthehide288 commented on GitHub (Dec 6, 2023):

文档应该是不支持的,得改一下源代码,后面做到配置文件里面去比较好 把原先的stun.Build(stun.TransactionID, stun.BindingRequest)改为这个 nonce和realm用coturn里面的配置即可 const ( username = "user" password = "secret" ) request, err = stun.Build(stun.TransactionID, stun.BindingRequest, stun.NewUsername(username), nonce, realm, stun.NewLongTermIntegrity(username, realm.String(), password), stun.Fingerprint, )

好的,我尝试一下

<!-- gh-comment-id:1842525821 --> @onthehide288 commented on GitHub (Dec 6, 2023): > 文档应该是不支持的,得改一下源代码,后面做到配置文件里面去比较好 把原先的stun.Build(stun.TransactionID, stun.BindingRequest)改为这个 nonce和realm用coturn里面的配置即可 const ( username = "user" password = "secret" ) request, err = stun.Build(stun.TransactionID, stun.BindingRequest, stun.NewUsername(username), nonce, realm, stun.NewLongTermIntegrity(username, realm.String(), password), stun.Fingerprint, ) 好的,我尝试一下
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#3042
No description provided.