Skip to content

Commit ddd5bbe

Browse files
committed
update reality
1 parent cb0fd0b commit ddd5bbe

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

hiddifypanel/panel/init_db.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ def _drop_wip_proxy_tables() -> None:
4040
set_hconfig(ConfigEnum.db_version, 129)
4141

4242

43+
def _v131(child_id):
44+
termination = CustomProxy.query.filter(
45+
CustomProxy.child_id == Child.current().id,
46+
CustomProxy.slug == REALITY_TERMINATION_SLUG,
47+
CustomProxy.enable == True,
48+
).first()
49+
for d in Domain.query.filter(Domain.mode == DomainType.direct, Domain.fake_mode == FakeMode.reality).all():
50+
d.custom_proxy_id = termination.id
51+
52+
4353
def _v130(child_id):
4454
"""Fresh proxy catalog, TLS store, and server IPs (WIP — no incremental migrations)."""
4555

0 commit comments

Comments
 (0)