3x-ui/internal
BlindMaster24 032ddcb29f
fix(nodetoken): make the corrupt-ciphertext test corrupt deterministically (#6520)
* fix(nodetoken): make the corrupt-ciphertext test corrupt deterministically

The test replaced the last two characters of the base64 body with "AA", which
can decode to the very same bytes: the body is RawURLEncoding of a 31-byte
blob, so the final character carries only 2 significant bits and the decoded
value is unchanged whenever the tag's last byte is 0x00. Measured over 50000
encryptions, 170 of those edits corrupted nothing — about one run in three
hundred fails for a reason that has nothing to do with the codec.

Flipping a bit of the decoded blob always changes the ciphertext, so the test
now pins the fallback behavior instead of the encoder's tail padding.

* style(nodetoken): trim the helper comment to the two-line limit

CLAUDE.md caps a committed Go comment block at two lines; the why fits.
2026-09-14 12:08:11 +02:00
..
amneziawg fix(amneziawg): honor inbound listen when binding UDP socket (#6461) 2026-09-12 11:11:02 +02:00
amneziawgnet fix(amneziawg): bound the SOCKS5 UDP associate exchange 2026-09-13 23:29:40 +02:00
config v3.7.0 2026-08-24 15:07:15 +02:00
crypto/nodetoken fix(nodetoken): make the corrupt-ciphertext test corrupt deterministically (#6520) 2026-09-14 12:08:11 +02:00
database fix(node): import a newly selected node inbound instead of sweeping it 2026-09-13 22:44:50 +02:00
eventbus
logger
mtproto
pia
sub fix(sub): drop external Clash shadowsocks nodes the panel cannot express (#6508) 2026-09-13 20:01:58 +02:00
tuic fix(tuic): evict the oldest relay flow instead of refusing new clients 2026-09-12 10:40:41 +02:00
tunnelmonitor
util fix(link): restore mKCP seed and headerType on share-link import (#6480) 2026-09-13 22:28:13 +02:00
web fix(node): import a newly selected node inbound instead of sweeping it 2026-09-13 22:44:50 +02:00
xray feat(sub): let the panel set the JSON subscription DNS servers (#6485) 2026-09-13 11:51:56 +02:00