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

fix: pin to python 3.10 #16

Closed
wants to merge 2 commits into from
Closed

Conversation

dnplkndll
Copy link

pinned and running on arm but DeprecationWarning(s):

/usr/local/bin/proxy:21: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead
  ip = random.choice([answer.address for answer in resolver.query(target)])
INFO:root:Resolved google.com to 142.250.190.110
/usr/local/bin/proxy:26: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  async def netcat(port):
INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:142.250.190.110:80
INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:142.250.190.110:443

@pedrobaeza
Copy link
Member

I think you can change the resolve deprecation and the coroutine thing, explaining both on the commit message, and it's good to go.

@pedrobaeza
Copy link
Member

You can put both changes in the same commits, as they are related and the deprecation won't appear if sticking to other Python versions. Please add also the resolve one.

@pedrobaeza
Copy link
Member

Fixed in #18

@pedrobaeza pedrobaeza closed this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants