mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-18 14:11:41 +00:00
The tunnel overlap guard treated every /0 allowedIPs entry as claiming no address, while the entry was stored with its host bits and the consumers read them back: the AmneziaWG port forwarder resolves a peer's target from them and the device routes the /0 by longest prefix. An entry such as 10.8.1.2/0 therefore passed next to another client's 10.8.1.2/32, and forwarded ports reached that client's device. A written entry now counts with its whole range, so a /0 collides with every held address of its family. On the stored side only a literal 0.0.0.0/0 or ::/0 default route keeps nobody out, and a /0 with host bits claims that host. Editing a legacy peer that echoes its stored default route still works. |
||
|---|---|---|
| .. | ||
| controller | ||
| entity | ||
| global | ||
| job | ||
| locale | ||
| middleware | ||
| network | ||
| runtime | ||
| service | ||
| session | ||
| translation | ||
| websocket | ||
| cadence_test.go | ||
| node_contract_test.go | ||
| routes_contract_test.go | ||
| schedule_test.go | ||
| web.go | ||
| web_mtls.go | ||
| web_mtls_test.go | ||
| web_shutdown_test.go | ||
| web_sublink_test.go | ||
| web_tuic_shutdown_test.go | ||