[HttpClient] with "bindto" with NativeHttpClient

This commit is contained in:
Nicolas Grekas 2020-09-07 09:41:14 +02:00
parent d441d867cd
commit cea05311fc

View File

@ -214,7 +214,7 @@ final class NativeHttpClient implements HttpClientInterface, LoggerAwareInterfac
'disable_compression' => true, 'disable_compression' => true,
], static function ($v) { return null !== $v; }), ], static function ($v) { return null !== $v; }),
'socket' => [ 'socket' => [
'bindto' => $options['bindto'], 'bindto' => $options['bindto'] ?: '0:0',
'tcp_nodelay' => true, 'tcp_nodelay' => true,
], ],
]; ];