f00b4r / nusoap

:smirk: Fixed NuSOAP for PHP 5.6 - 8.2
https://f00b4r.github.io/nusoap/
320 stars 356 forks source link

Setting of the proxy port does nothing #54

Open arkadyno opened 4 years ago

arkadyno commented 4 years ago

After calling setHTTPProxy('192.168.1.100', 3128); soap client still connects to port 80. In the connect() method:

 if (!is_array($this->proxy)) {
        $host = $this->host;
        $port = $this->port;
} else {
        $host = $this->proxy['host'];
        $port = $this->proxy['port'];
}

But $port variable is not used anywhere in the method. Instead, connection always is set to $host and $this->port : $this->fp = @fsockopen($host, $this->port, $this->errno, $this->error_str, $connection_timeout);