Skip to content

某些情况下子域名获取失败 #2288

Open
@hongweipeng

Description

@hongweipeng

RequestsubDomain() 函数中,采用了 stristr 去掉 rootDomain 的部分。stristr 是查找子串第一次出现,并返回字符串的剩余部分。

所以如果域名是 tp.com.local.tp.com 。那么 subDomain() 将返回空字符,而不是期望的 tp.com.local

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions