Address Copilot review: require ipaddr and re-assert the socket port

The guard uses IPAddr but relied on something else loading it first;
require it explicitly. And the rebinding tests lost their port assertion
when the matchers were loosened for newer Net::HTTP keyword args, so
check the port alongside the IP again.
This commit is contained in:
Donal McBreen committed 2026-07-21 11:53:37 +01:00
1 parent 80fdd44622
commit c0cade51a1
2 files changed
+3 -2

No files matched your search

@@ -1,3 +1,4 @@
require "ipaddr"
require "resolv"
module RestrictedHTTP