mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Update CDN / Download / Domestic Hosts
This commit is contained in:
@@ -27,8 +27,8 @@ export function isProbablyIpv4(hostname: string): boolean {
|
||||
|
||||
return (
|
||||
numberOfDots === 3
|
||||
&& hostname.charCodeAt(0) !== 46
|
||||
&& /* '.' */ hostname.charCodeAt(hostname.length - 1) !== 46 /* '.' */
|
||||
&& hostname.charCodeAt(0) !== 46 /* '.' */
|
||||
&& hostname.charCodeAt(hostname.length - 1) !== 46 /* '.' */
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user