#wait for proxy in i.py

1 messages · Page 1 of 1 (latest)

gaunt ruin
#

Earlier, I asked if i.py could provide support for the proxy service,

I want to create a new page and wait for a response from successful support.
If possible, I hope to give me an example
THX for everyone

About proxy
in discord.py, I can use discord.Bot(intents=discord.Intents.all(), proxy='http://127.0.0.1:7890') to specify a port on which to run the entire code, and now I want to use this method in i.py

calm lagoonBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

versed moss
#

apologies thats on me, not grandma - i got caught up with other bits

gaunt ruin
versed moss
#

#1398

calm lagoonBOT
# versed moss #1398

• Pull Request Type: Feature addition
• Created: <t:1683701336:R>

Description

Adds support for using http proxies. These are configured through the client flags. Ie...
[CODEBLOCK]
Proxy auth can be either a tuple, or aiohttp.BasicAuth

All webtraffic, including websockets, will then be routed through the proxy

Changes
  • Add proxy client flags
  • Add proxy validation in HTTPClient
  • Add proxy params to all websocket_connect and request
Related Issues

N/A

Test Scenarios

Add the proxy params as per the above, and watch the logs; If you see these 2 lines, the proxy is working
[IMAGE]

Python Compatibility
  • ❌ I've ensured my code works on Python 3.10.x
  • ✅ I've ensured my code works on Python 3.11.x
Checklist
  • ✅ I've run the pre-commit code linter over all edited files
  • ✅ I've tested my changes on supported Python versions
  • ❌ I've added tests for my code, if applicable
  • ❌ I've updated / added documentation, where applicable
gaunt ruin
#

THX a lot!

#

I will mark this channel and close it in a few days.
Thanks again honey