Skip to content

Commit e4aa828

Browse files
[HttpClient] with "bindto" with NativeHttpClient
1 parent d4fcb57 commit e4aa828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NativeHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function request(string $method, string $url, array $options = []): Respo
214214
'disable_compression' => true,
215215
], static function ($v) { return null !== $v; }),
216216
'socket' => [
217-
'bindto' => $options['bindto'],
217+
'bindto' => $options['bindto'] ?: '0:0',
218218
'tcp_nodelay' => true,
219219
],
220220
];

0 commit comments

Comments
 (0)