Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite Error 19: 'UNIQUE constraint failed: rules.Type, rules.ListenOn, rules.ListenPort'. #22

Open
LiveOn opened this issue Jun 29, 2024 · 1 comment

Comments

@LiveOn
Copy link

LiveOn commented Jun 29, 2024

提个建议可以去掉数据库的唯一限制,比如有这样的场景我需要在端口1转发到端口2和3中随时切换,我就需要建两条转发规则,禁用其中一条来达到切换的效果,再提一个建议就是把启用和禁用作为单独的列,放置一个开关按钮进行控制,如果可以的话

@zmjack
Copy link
Owner

zmjack commented Jul 3, 2024

转发类型 & 监听地址 & 监听端口 作为键值 唯一生效的。

如果允许重复设置,在全选启用时,只会有一条生效,操作上是有歧义的。


这个应用场景很有意义,我思考下如何支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants