Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting of the proxy port does nothing #54

Open
arkadyno opened this issue Mar 17, 2020 · 0 comments
Open

Setting of the proxy port does nothing #54

arkadyno opened this issue Mar 17, 2020 · 0 comments

Comments

@arkadyno
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant