fix(warp): timeout при прокси, четная длина hex для awg_i1..i5, исправление выбора секции прокси (#43)

This commit is contained in:
Dushnilin
2026-08-27 13:06:31 +03:00
parent 627941c2df
commit 7ddb7f6d4d
5 changed files with 180 additions and 89 deletions
+4 -1
View File
@@ -184,8 +184,11 @@ function awg_tag_chain(value) {
// Classic AmneziaWG form: plain hex (with optional 0x prefix).
let hex = lc(value);
hex = replace(hex, /^0x/, "");
if (match(hex, /^[0-9a-f]+$/) && length(hex) % 2 == 0)
if (match(hex, /^[0-9a-f]+$/)) {
if (length(hex) % 2 != 0)
hex += "0";
return "<b 0x" + hex + ">";
}
// Unsupported shape: emit nothing rather than a value that would be
// silently dropped at runtime; validation reports it.