Skip to content

Commit

Permalink
Merge pull request #18 from Tecnativa/python_311-comp
Browse files Browse the repository at this point in the history
[FIX] Adapt code to Python 3.11
  • Loading branch information
pedrobaeza authored Feb 6, 2024
2 parents b1db569 + c1d3cde commit d2cf614
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
if os.environ["PRE_RESOLVE"] == "1":
resolver = Resolver()
resolver.nameservers = os.environ["NAMESERVERS"].split()
ip = random.choice([answer.address for answer in resolver.query(target)])
ip = random.choice([answer.address for answer in resolver.resolve(target)])
logging.info("Resolved %s to %s", target, ip)


@asyncio.coroutine
async def netcat(port):
# Use a persistent BusyBox netcat server in listening mode
command = ["socat"]
Expand Down

0 comments on commit d2cf614

Please sign in to comment.