fix(egress): allow duplicate undetected addresses#9
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
egress_ips.ip_address的唯一约束ip_address非空约束、全部出口数据、主机绑定和外键行为0.0.0.0根因
egress_ips.id已经是资源主键,但ip_address仍被错误设为唯一字段。管理后台又会给所有尚未检测的代理线路写入相同的0.0.0.0,导致第二条线路创建失败;多个线路共享同一真实出口 IP 时也会发生相同冲突。验证
go test ./...go test $(go list ./... | rg -v '/tests/e2e$') -race -shuffle=on -count=1go test ./tests/e2e/... -count=1go vet ./...pnpm test:unitpnpm buildpnpm typecheck的剩余错误均可在origin/main复现,本次未新增类型错误。