mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 01:44:16 +08:00
🏅 Sync 2026-10-06 17:10:26
This commit is contained in:
1 parent
c3b5349800
commit
4d2ba50e17
35 files changed
+1231
-76
No files matched your search
@@ -43,7 +43,7 @@
|
||||
|
||||
import { popen } from 'fs';
|
||||
|
||||
import { HP_DIR, RUN_DIR, shellQuote } from '../homeproxy-pro.uc';
|
||||
import { HP_DIR, RUN_DIR, shellQuote, udp_transport_verdict } from '../homeproxy-pro.uc';
|
||||
|
||||
export const DEBUG_REPORT_PATH = RUN_DIR + '/debug.log';
|
||||
|
||||
@@ -274,6 +274,18 @@ function configSummary(uci) {
|
||||
(v == null || v === '') ? '_(unset)_' : (isSecretKey(sw[1]) ? maskValue(v) : v));
|
||||
}
|
||||
|
||||
/* The QUIC verdict, because it is the one conclusion in this report that
|
||||
* is derived rather than reported: the switches table shows
|
||||
* `main_udp_node`, and `main_udp_node` on its own does not say whether
|
||||
* QUIC was rejected by the firewall or why. udp_transport_verdict() is
|
||||
* the same function firewall_post.ut gates the nft rule with, so this
|
||||
* line describes the rule that is actually loaded rather than a second
|
||||
* opinion about it. */
|
||||
const udp = udp_transport_verdict('homeproxy-pro', uci);
|
||||
out += sprintf('\n- UDP path: **%s** - %s\n',
|
||||
udp.native ? 'UDP-native' : (udp.configured ? 'not UDP-native' : 'UDP not configured'),
|
||||
udp.reason);
|
||||
|
||||
return out;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user