mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 04:21:53 +08:00
Chore: create rule set / Add China IP sing-box
This commit is contained in:
@@ -110,3 +110,12 @@ export const surgeDomainsetToSingbox = (domainset: string[]) => {
|
||||
rules: [rule]
|
||||
};
|
||||
};
|
||||
|
||||
export const ipCidrListToSingbox = (ipCidrList: string[]): SingboxSourceFormat => {
|
||||
return {
|
||||
version: 2,
|
||||
rules: [{
|
||||
ip_cidr: ipCidrList
|
||||
}]
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user