Commit 20394a4
committed
feat: add PAC file execution test script and improve PAC logic #41
- Added a new script `test_pac_execution.js` to validate the functionality of the PAC file.
- Enhanced the `pac-template` to maintain leading zeros in binary strings for CIDR matching.
- Updated the logic for handling CIDR prefixes to support decompression.
- Changed file permissions for `local-tlds.txt` and `proxy-domains.txt` to executable.1 parent 59ec1a0 commit 20394a4
12 files changed
Lines changed: 293 additions & 24 deletions
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
50 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
51 | 67 | | |
| 68 | + | |
52 | 69 | | |
53 | 70 | | |
54 | 71 | | |
| |||
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
63 | | - | |
| 80 | + | |
| 81 | + | |
64 | 82 | | |
65 | 83 | | |
| 84 | + | |
66 | 85 | | |
67 | 86 | | |
68 | 87 | | |
| |||
Large diffs are not rendered by default.
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
167 | | - | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
| 170 | + | |
169 | 171 | | |
170 | | - | |
| 172 | + | |
171 | 173 | | |
172 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
173 | 178 | | |
174 | | - | |
175 | | - | |
| 179 | + | |
| 180 | + | |
176 | 181 | | |
177 | | - | |
| 182 | + | |
178 | 183 | | |
0 commit comments