mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 09:40:34 +08:00
Fix: sort CIDRs after merging
This commit is contained in:
parent
b22079f5eb
commit
7eee4bb3bc
@ -369,10 +369,10 @@ export class FileOutput {
|
|||||||
let ipcidr6NoResolve: string[] | null = null;
|
let ipcidr6NoResolve: string[] | null = null;
|
||||||
|
|
||||||
if (this.ipcidr.size) {
|
if (this.ipcidr.size) {
|
||||||
ipcidr = merge(Array.from(this.ipcidr));
|
ipcidr = merge(Array.from(this.ipcidr), true);
|
||||||
}
|
}
|
||||||
if (this.ipcidrNoResolve.size) {
|
if (this.ipcidrNoResolve.size) {
|
||||||
ipcidrNoResolve = merge(Array.from(this.ipcidrNoResolve));
|
ipcidrNoResolve = merge(Array.from(this.ipcidrNoResolve), true);
|
||||||
}
|
}
|
||||||
if (this.ipcidr6.size) {
|
if (this.ipcidr6.size) {
|
||||||
ipcidr6 = Array.from(this.ipcidr6);
|
ipcidr6 = Array.from(this.ipcidr6);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user