Author Topic: How to use avastlic tool behind a proxy?  (Read 7050 times)

0 Members and 1 Guest are viewing this topic.

Offline cg

  • Newbie
  • *
  • Posts: 9
How to use avastlic tool behind a proxy?
« on: April 04, 2022, 01:38:21 PM »
How to use avastlic tool behind a proxy?
https_proxy and http_proxy envoironment settings seem to be ignored...

Offline Radek Brich

  • Developer (Linux AV, Mac AV)
  • Avast team
  • Jr. Member
  • *
  • Posts: 54
Re: How to use avastlic tool behind a proxy?
« Reply #1 on: April 04, 2022, 03:25:24 PM »
Hi, avastlic uses https via libcurl. Proxy settings should be respected, as they are by default and we don't touch those defaults: https://curl.se/libcurl/c/CURLOPT_PROXY.html

Does `curl` command work for you with your proxy settings? E.g. `curl https://example.com` should work.

Offline cg

  • Newbie
  • *
  • Posts: 9
Re: How to use avastlic tool behind a proxy?
« Reply #2 on: April 04, 2022, 03:54:01 PM »
Thx for pointing out, I thought I had http(s)_proxy set when testing. Anyway I was able to generate the license file on another machine with direct internet access.

Offline cg

  • Newbie
  • *
  • Posts: 9
Re: How to use avastlic tool behind a proxy?
« Reply #3 on: April 05, 2022, 11:52:45 AM »
I had a similar problem when updating signatures. I had to increase the connection timeout from 5 to 10 seconds in the update script. Maybe sth. similar applies to the license tool.

Offline cg

  • Newbie
  • *
  • Posts: 9
Re: How to use avastlic tool behind a proxy?
« Reply #4 on: July 06, 2022, 05:46:18 PM »
I have to reopen this case:
On June 21 software version 4.0.4 was installed automatically. This overwrote avast.setup and my timeout patch (see above was gone). Since then signature updates worked only sporadically.

Is there any way to set this parameter by configuration so that it will not be overwritten? If not I consider this a bug as the software will not be able anymore to run with new signatures.

I changed this line in avast.setup:
DOWNLOAD="curl -L -s --connect-timeout 10 -f"

(originally it was DOWNLOAD="curl -L -s --connect-timeout 5 -f" )

Offline Radek Brich

  • Developer (Linux AV, Mac AV)
  • Avast team
  • Jr. Member
  • *
  • Posts: 54
Re: How to use avastlic tool behind a proxy?
« Reply #5 on: July 11, 2022, 10:53:45 AM »
Hi, thanks for reporting.

The 5 second timeout is really too short. I'm changing it to 30 seconds for the next release. Your workaround should not be overwritten until that update, as the avast.setup file is installed from `avast` package (it's not overwritten by VPS signatures).

The avastlic tool has connection timeout 45s, but also "max-time" 45s (i.e. timeout for the whole operation). The later might be the issue. We'll see what can be done about that (make it much longer or configurable).