We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f005b0f commit 748cdd0Copy full SHA for 748cdd0
1 file changed
src/main/php/peer/http/HttpProxy.class.php
@@ -33,7 +33,7 @@ class HttpProxy {
33
*/
34
public function __construct($host, $port= 8080, $excludes= []) {
35
if (null === $port) {
36
- if ('[' === $host{0}) {
+ if ('[' === $host[0]) {
37
$parsed= sscanf($host, '[%[^]]]:%d', $addr, $this->port);
38
$this->host= '['.$addr.']';
39
} else {
0 commit comments