diff --git a/CHANGELOG.md b/CHANGELOG.md index 4265895..31e5dea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Timeout periods above the minute were not taking into account - Socket client options are applied when connecting, not after - Broken links couldn't be removed +- Transport options were not applied when starting a internet server ## 4.1.2 - 2026-08-01 diff --git a/src/Internal/Capabilities/Sockets/Servers.php b/src/Internal/Capabilities/Sockets/Servers.php index 20a37b9..c6b11ca 100644 --- a/src/Internal/Capabilities/Sockets/Servers.php +++ b/src/Internal/Capabilities/Sockets/Servers.php @@ -49,7 +49,10 @@ public function internet( $ip->toString(), $port->toString(), ); - $socket = @\stream_socket_server($address); + $socket = @\stream_socket_server( + $address, + context: $transport->asContext(), + ); if ($socket === false) { /** @var Attempt */