Skip to content

Commit bbb04fa

Browse files
committed
Fix issue where port was missing in socker uri (@sirn-se)
1 parent 25848ca commit bbb04fa

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
> PHP version `^7.4|^8.0`
88
9+
### `1.6.`
10+
11+
* Fix issue where port was missing in socker uri (@sirn-se)
12+
913
### `1.6.1`
1014

1115
* Fix client path for http request (@simPod, @sirn-se)

lib/Client.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,12 @@ protected function connect(): void
305305
{
306306
$this->connection = null;
307307

308-
$host_uri = (new Uri())
309-
->withHost($this->socket_uri->getHost())
308+
$host_uri = $this->socket_uri
310309
->withScheme($this->socket_uri->getScheme() == 'wss' ? 'ssl' : 'tcp')
311-
->withPort($this->socket_uri->getPort());
310+
->withPath('')
311+
->withQuery('')
312+
->withFragment('')
313+
->withUserInfo('');
312314

313315
// Path must be absolute
314316
$http_path = $this->socket_uri->getPath();

0 commit comments

Comments
 (0)