Home
last modified time | relevance | path

Searched refs:mayIncludePort (Results 1 – 3 of 3) sorted by relevance

/plugin/ipban/ip-lib/src/
H A DFactory.php16 * @param bool $mayIncludePort set to false to avoid parsing addresses with ports
21 …public static function addressFromString($address, $mayIncludePort = true, $mayIncludeZoneID = tru… argument
25 $result = Address\IPv4::fromString($address, $mayIncludePort);
28 $result = Address\IPv6::fromString($address, $mayIncludePort, $mayIncludeZoneID);
/plugin/ipban/ip-lib/src/Address/
H A DIPv4.php68 * @param bool $mayIncludePort set to false to avoid parsing addresses with ports
72 public static function fromString($address, $mayIncludePort = true) argument
77 if ($mayIncludePort) {
H A DIPv6.php78 * @param bool $mayIncludePort set to false to avoid parsing addresses with ports
83 public static function fromString($address, $mayIncludePort = true, $mayIncludeZoneID = true) argument
88 …if ($mayIncludePort && $address[0] === '[' && preg_match('/^\[(.+)\]:\d+$/', $address, $matches)) {