Skip to content

Commit

Permalink
Allow proxyAddress to be a SocketAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Mar 19, 2024
1 parent 4dd69c1 commit f2c64f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Socks5TunnelConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static function tunnel(
}

public function __construct(
private readonly string $proxyAddress,
private readonly SocketAddress|string $proxyAddress,
private readonly ?string $username = null,
private readonly ?string $password = null,
private readonly ?SocketConnector $socketConnector = null
Expand Down

0 comments on commit f2c64f0

Please sign in to comment.