chore(fmt): align test comments in gitea/ipcheck_test.go
CI / test (push) Successful in 17s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (push) Has been skipped
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (push) Has been skipped
CI / review (gpt-5, security, ., rodin/security-patterns, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (push) Has been skipped
CI / test (push) Successful in 17s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (push) Has been skipped
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (push) Has been skipped
CI / review (gpt-5, security, ., rodin/security-patterns, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (push) Has been skipped
This commit is contained in:
@@ -15,9 +15,9 @@ func TestIsBlockedIPForwarding(t *testing.T) {
|
|||||||
ip string
|
ip string
|
||||||
blocked bool
|
blocked bool
|
||||||
}{
|
}{
|
||||||
{"127.0.0.1", true}, // loopback — must be blocked
|
{"127.0.0.1", true}, // loopback — must be blocked
|
||||||
{"192.168.1.1", true}, // RFC1918 — must be blocked
|
{"192.168.1.1", true}, // RFC1918 — must be blocked
|
||||||
{"8.8.8.8", false}, // public — must not be blocked
|
{"8.8.8.8", false}, // public — must not be blocked
|
||||||
{"2001:4860:4860::8888", false}, // public IPv6 — must not be blocked
|
{"2001:4860:4860::8888", false}, // public IPv6 — must not be blocked
|
||||||
}
|
}
|
||||||
for _, tc := range cases {
|
for _, tc := range cases {
|
||||||
|
|||||||
Reference in New Issue
Block a user