generated from Nodarx/template
refactor: use split socket location class
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -110,7 +110,7 @@ class Discovery
|
||||
];
|
||||
$seen = [];
|
||||
foreach ($results as $r) {
|
||||
$seen[$r->getHost()] = true;
|
||||
$seen[$r->getInboundHost()] = true;
|
||||
}
|
||||
foreach ($candidates as $host) {
|
||||
if (isset($seen[$host])) {
|
||||
@@ -203,10 +203,11 @@ class Discovery
|
||||
|
||||
$loc = new ServiceLocation();
|
||||
$loc->jsonDeserialize([
|
||||
'host' => $host,
|
||||
'port' => $port,
|
||||
'encryption' => $encryption,
|
||||
'verifyPeer' => $verifySSL,
|
||||
'inboundHost' => $host,
|
||||
'inboundPort' => $port,
|
||||
'inboundEncryption' => $encryption,
|
||||
'inboundVerifyPeer' => $verifySSL,
|
||||
'inboundVerifyHost' => $verifySSL,
|
||||
]);
|
||||
return $loc;
|
||||
} catch (\Throwable) {
|
||||
|
||||
Reference in New Issue
Block a user