mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3256] [BUG]子域名判断有问题吗 #2610
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#2610
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 @tgNotHouse on GitHub (Jan 16, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3256
Bug Description
比如服务器的配置
这里
SubDomainHost字段子域名是test.frp.com,然后客户端申请了一个http隧道,子域名是

1.test.frp.com,写在客户端的配置的这里启动之后,客户端就会收到下面的错误
start error: proxy [8bccb21a898d5958.http] domain conf check error: custom domain [1.test.frp.com] should not belong to subdomain_host [test.frp.com]。是不是这里的判断有问题,是不是我写错了

frpc Version
0.46.1
frps Version
0.46.1
System Architecture
linux/amd64
Configurations
Logs
start error: proxy [8bccb21a898d5958.http] domain conf check error: custom domain [1.test.frp.com] should not belong to subdomain_host [test.frp.com]
Steps to reproduce
...
Affected area
@xingtongsf commented on GitHub (Jan 17, 2023):
你填错位置了。subdomain才是子域名字段,custom_domains 是客户自有域名字段。比如客户可填自己1.aaa.com,才填到custom_domains 。你这种subdomain = 1 就可以了。test.frp.com在服务器填写。subdomain_host = test.frp.com。仔细看frpsfull.ini里面方法挺详尽。
@tgNotHouse commented on GitHub (Jan 17, 2023):
@xingtongsf 好像还是不对,如果客户端subdomain字段只写1,

subdomain = frpqwj这样,提示就是@superzjg commented on GitHub (Jan 18, 2023):
域名解析了吗?
@tgNotHouse commented on GitHub (Jan 18, 2023):
@superzjg 是的,子域名和服务器上的是一样的,都可以解析到同一个ip
@xingtongsf commented on GitHub (Jan 19, 2023):
服务器subdomain_host设置了没有。还有域名有没有设置泛域名解析
@tgNotHouse commented on GitHub (Jan 19, 2023):
@xingtongsf 我根据我截图的log能看出服务器的这个字段是有设置的,泛域名解析是什么,比如说服务器域名是test.frp.com,那么申请http隧道后会得到一个my.test.frp.com,这个和test.frp.com解析的地址一样的,那么就是设置了*.test.frp.com,泛域名解析。
@github-actions[bot] commented on GitHub (Feb 19, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.