3x-ui/internal/database
Pejman Yousefi 40cea0c2fe
feat(sub): generate random IPs from CIDR host addresses (#6784)
Operators who front a server with an IP range (a CDN or anycast prefix) had to
list each address as its own host. A host address may now be a CIDR, and every
subscription fetch expands it into up to randomCount (1–100, default 1) unique
random host IPs from the range, IPv4 and IPv6 alike, skipping the network and
broadcast addresses. The panel's own previews, QR codes and tunnel config
exports (WireGuard, AmneziaWG, TUIC, MTProto) expand it the same way, and the
externalProxy importer writes the model's default count so the re-sync still
recognises untouched imported hosts.
2026-10-24 05:13:44 +02:00
..
dbtest fix(database): create the first panel user with random credentials 2026-10-24 01:26:05 +02:00
model feat(sub): generate random IPs from CIDR host addresses (#6784) 2026-10-24 05:13:44 +02:00
api_token_timestamp_test.go
backup_test.go
client_email_lower_index_test.go perf(clients): write client_inbounds deltas and check identity from the clients table 2026-08-20 04:09:57 +02:00
client_hwid_schema_test.go
client_weekly_renew_migration_test.go feat(clients): add calendar weekly renewal and schedule previews (#6524) 2026-09-26 22:59:23 +02:00
client_weekly_renew_postgres_test.go feat(clients): add calendar weekly renewal and schedule previews (#6524) 2026-09-26 22:59:23 +02:00
db.go feat(sub): generate random IPs from CIDR host addresses (#6784) 2026-10-24 05:13:44 +02:00
db_permissions_test.go fix(database): keep the SQLite store owner-only (#6390) 2026-09-03 16:37:35 +02:00
db_reopen_test.go fix(database): close the pool a second InitDB replaces 2026-09-27 15:32:17 +02:00
db_seed_test.go fix(database): create the first panel user with random credentials 2026-10-24 01:26:05 +02:00
db_settled_test.go
dialect.go fix(node-sync): do not latch node disable when master allows (#6870) (#6876) 2026-10-23 19:04:46 +02:00
dns_outbound_legacy_keys_migration_test.go fix(xray): migrate the dns outbound off its legacy nonIPQuery and blockTypes (#6519) 2026-09-14 12:30:23 +02:00
dns_outbound_qtype_zero_test.go fix(xray): stop a lone dns qType 0 from matching every query 2026-09-15 16:00:05 +02:00
dump_sqlite.go fix(database): keep the dump restore inside its own database file 2026-10-03 13:19:54 +02:00
dump_sqlite_test.go fix(database): keep the dump restore inside its own database file 2026-10-03 13:19:54 +02:00
fail2ban_state_test.go
freedom_domain_strategy_migration_test.go fix(xray): read an outbound protocol id the way the core does (#6521) 2026-09-14 19:52:27 +03:00
freedom_finalrules_migration_test.go
host_migration_test.go fix(database): blank boolean-era verifyPeerCertByName values on hosts 2026-10-12 18:16:22 +02:00
host_test.go feat(sub): generate random IPs from CIDR host addresses (#6784) 2026-10-24 05:13:44 +02:00
inbound_dedupe_test.go
inbound_exclude_from_sub_migration_test.go feat(inbound): excludeFromSub hides links without disabling (#6463) 2026-09-27 12:26:37 +02:00
inbound_port_unique_migration_test.go
index_tags_test.go perf(auth): look up api tokens by their hash index (#6915) 2026-10-24 05:06:49 +02:00
journal_mode_test.go
migrate_data.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
migrate_data_test.go
migration_models_test.go
mtproto_migration_test.go
node_down_notified_migration_test.go feat(notifications): add a failed-check threshold for node.down alerts (#6768) 2026-10-24 04:26:13 +02:00
outbound_removed_keys_migration_test.go feat(xray): update xray-core to v26.9.8 and adapt panel 2026-09-08 13:49:32 +02:00
prepare_sqlite_test.go
reality_finalmask_migration_test.go
removed_cipher_migration_test.go
rewriter_protocol_case_test.go fix(xray): read an outbound protocol id the way the core does (#6521) 2026-09-14 19:52:27 +03:00
seeder_fastpath_test.go
settings_index_test.go
shadowsocks_server_key_migration_test.go fix(inbounds): refuse 2022-blake3-chacha20-poly1305 on shadowsocks inbounds 2026-10-11 21:20:07 +02:00
traffic_overflow_repair_test.go
udphop_client_mask_migration_test.go fix(finalmask): hop client UDP through the udphop mask 2026-10-11 11:20:34 +02:00
wireguard_domain_strategy_migration_test.go feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
wireguard_migration_test.go
xdns_finalmask_migration_test.go feat(xray): update xray-core to v26.10.10 and adapt panel 2026-10-11 07:55:12 +02:00