def cookie.ip
import bend-kit-http@0.38.4.0/http.bend as Httpimport Base
1916# An IP literal rather than a host name: IPv6 has a colon, IPv4 is digits and dots.
1917def cookie.ip(+h: String) -> Bool:
1918 Bool.or(String.contains(h, ":"), cookie.ip4(h))