fix(DnsPinMiddleware): Don't log misleading port value

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2025-01-30 19:23:47 -05:00 committed by GitHub
parent 566cecbcc4
commit e07c89d0e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ class DnsPinMiddleware {
foreach ($targetIps as $ip) {
if ($this->ipAddressClassifier->isLocalAddress($ip)) {
// TODO: continue with all non-local IPs?
throw new LocalServerException('Host "' . $ip . '" (' . $hostName . ':' . $port . ') violates local access rules');
throw new LocalServerException('Host "' . $ip . '" (' . $hostName . ') violates local access rules');
}
$curlResolves["$hostName:$port"][] = $ip;
}