if (self::HEADER_X_FORWARDED_PORT ===
$type) { if (str_ends_with($v, ']'
) || false ===
$v =
strrchr($v, ':'
)) { $v =
$this->
isSecure() ? ':443' : ':80';
} $v = '0.0.0.0'.
$v;
} $forwardedValues[] =
$v;
} } if (null !==
$ip) { $clientValues =
$this->
normalizeAndFilterClientIps($clientValues,
$ip);
$forwardedValues =
$this->
normalizeAndFilterClientIps($forwardedValues,
$ip);
} if ($forwardedValues ===
$clientValues || !
$clientValues) { return $forwardedValues;
} if (!
$forwardedValues) { return $clientValues;
}