Limnoria icon indicating copy to clipboard operation
Limnoria copied to clipboard

protocols.http.proxy occassionally gets ignored

Open Mikaela opened this issue 7 years ago • 4 comments
trafficstars

I have protocols.http.proxy set to 127.0.0.1:8118 which is Privoxy listening on 127.0.0.1 and it's configured to send traffic to Tor (forward-socks5t / 127.0.0.1:9050 .).

However often web fetch https://icanhazip.com/ returns the real IP\n and web title http://expyuzz4wqqyqhjn.onion/ (www.torproject.org, see onion.torproject.org) returns <urlopen error [Errno -2] Name or service not known>.

I have confirmed that the issue is not in Privoxy configuration as curl -x http://127.0.0.1:8118 https://icanhazip.com returns IP of a Tor exit node.

  • The current (running) version of this Limnoria is 2018.09.01, running on Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0].
  • Ubuntu 18.04.1 LTS

Mikaela avatar Oct 08 '18 11:10 Mikaela

There was a suggestion that I may have a perception error on it working sometimes and there were two interesting links.

  • https://github.com/oddluck/limnoria-plugins/commit/a5dcd83d7bf4320c2c1d483b4d1d8b83b520c48a - SpiffyTitles commit adding support for HTTP proxy where the word "proxy" can be easily seen.
  • https://github.com/ProgVal/Limnoria/blob/5195ff8e122c2966fc7c65dd16edc50a57a79232/plugins/Web/plugin.py - the Web plugin source code as it currently is doesn't mention the word "proxy" hinting that the plugin may not have proxy support at all?

Mikaela avatar Jun 20 '21 21:06 Mikaela

the Web plugin source code as it currently is doesn't mention the word "proxy"

it doesn't need to deal with proxies because it uses supybot.utils.web.

progval avatar Jun 20 '21 21:06 progval

It seems to hardcode the proxy as None instead of actually reading the configured proxy?

  • https://github.com/ProgVal/Limnoria/blob/master-2021-06-17/src/utils/web.py#L128

Mikaela avatar Jun 20 '21 21:06 Mikaela

Yes, but it's overridden here: https://github.com/ProgVal/Limnoria/blob/67a39a3adbd78d8088a0bac94c47227891a54e58/src/conf.py#L1335

progval avatar Jun 20 '21 22:06 progval