mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-12 01:37:52 +08:00
🍉 Sync 2026-09-25 18:00:12
This commit is contained in:
1 parent
7c17dda4d0
commit
2ee65a261e
135 files changed
+5726
-7799
No files matched your search
@@ -45,6 +45,7 @@ const DEFAULT_TEMPLATE =
|
||||
' }\n' +
|
||||
' routing {\n' +
|
||||
' request {\n' +
|
||||
' qname(suffix:googleapis.cn) -> fallbackdns\n' +
|
||||
' qname(geosite:cn) -> cndns\n' +
|
||||
' fallback: fallbackdns\n' +
|
||||
' }\n' +
|
||||
@@ -70,6 +71,7 @@ const DEFAULT_TEMPLATE =
|
||||
' l4proto(udp) && dport(123) -> direct\n' +
|
||||
' domain(connectivitycheck.gstatic.com) -> direct\n' +
|
||||
' domain(msftconnecttest.com) -> direct\n' +
|
||||
' domain(suffix:googleapis.cn) -> proxy\n' +
|
||||
' dip(geoip:cn) -> direct\n' +
|
||||
' domain(geosite:cn) -> direct\n' +
|
||||
' fallback: proxy\n' +
|
||||
@@ -704,7 +706,7 @@ function renderDaeEditor() {
|
||||
save.disabled = true;
|
||||
flashStatus(_('Validating…'));
|
||||
fs.write(VALIDATE_PATH, textarea.value, 384)
|
||||
.then(function() { return fs.exec('/usr/bin/dae', ['validate', '-c', VALIDATE_PATH]); })
|
||||
.then(function() { return fs.exec('/usr/bin/env', ['DAE_LOCATION_ASSET=/usr/share/v2ray', '/usr/bin/dae', 'validate', '-c', VALIDATE_PATH]); })
|
||||
.then(function(res) {
|
||||
if (res && res.code !== 0) {
|
||||
const err = (res.stderr || res.stdout || ('exit ' + res.code)).trim().split('\n')[0];
|
||||
|
||||
Reference in new issue
Block a user