mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3828] 现在支持带密码的stun服务器吗 #3042
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#3042
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?
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
@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,
)
@onthehide288 commented on GitHub (Dec 6, 2023):
好的,我尝试一下