framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open hongweipeng opened this issue 5 years ago • 0 comments

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

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

hongweipeng avatar Jun 16 '20 07:06 hongweipeng