-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support record relay rule traffic
- Loading branch information
Showing
5 changed files
with
191 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
apps/proxy/migrations/0027_remove_relayrule_proxy_node_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Generated by Django 4.2.6 on 2024-02-05 01:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("proxy", "0026_alter_userproxynodeoccupancy_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="relayrule", | ||
name="proxy_node", | ||
), | ||
migrations.RemoveField( | ||
model_name="relayrule", | ||
name="rule_name", | ||
), | ||
migrations.AddField( | ||
model_name="relayrule", | ||
name="down_traffic", | ||
field=models.BigIntegerField(default=0, verbose_name="下载流量"), | ||
), | ||
migrations.AddField( | ||
model_name="relayrule", | ||
name="name", | ||
field=models.CharField( | ||
blank=True, default="", max_length=64, unique=True, verbose_name="规则名" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="relayrule", | ||
name="proxy_nodes", | ||
field=models.ManyToManyField( | ||
related_name="relay_rules", to="proxy.proxynode", verbose_name="代理节点" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="relayrule", | ||
name="up_traffic", | ||
field=models.BigIntegerField(default=0, verbose_name="上传流量"), | ||
), | ||
] |
Oops, something went wrong.