Add regression test for IpSpoofAttackError issue

See #10780