inadyn icon indicating copy to clipboard operation
inadyn copied to clipboard

Add http proxy support

Open CoderYellow opened this issue 4 years ago • 1 comments

I got this error:

Failed connecting to api.dynu.com: Operation now in progress

Because some DDNS service has bean blocked in China. Can inadyn use environment variable https_proxy to proceed api request.

CoderYellow avatar Feb 16 '21 02:02 CoderYellow

There was some initial work done for general proxy support, but it was never completed. Lack of time to work on the feature, and proxy servers to test against, were the primary reasons. See #157 for details.

The error code can also be returned when there's a delay in connecting, which we don't handle properly, I just noticed. The socket is non-blocking and for such cases we should call poll() or select() to help determine if we manage to connect or not.

troglobit avatar Feb 16 '21 02:02 troglobit