Solana0x / nodepay

Automate Nodepay with this Python bot, managing multiple accounts and proxies to ensure 24/7 uptime and maximize earnings. Perfect for those seeking a seamless and efficient way to handle WebSocket connections through HTTP proxies
https://app.nodepay.ai/register?ref=PGiwMlh6dQJVmxE
MIT License
13 stars 5 forks source link

can you support socks5? #7

Open y3zha opened 1 week ago

y3zha commented 1 week ago

can you support socks5?

y3zha commented 1 week ago
proxy_instance = Proxy.from_url(proxy)

        ssl_context = ssl.create_default_context()
        ssl_context.check_hostname = False
        ssl_context.verify_mode = ssl.CERT_NONE
        async with proxy_connect(WEBSOCKET_URL, proxy=proxy_instance, ssl=ssl_context, extra_headers={
            "Origin": "chrome-extension://lgmpfmgeabnnlemejacfljbmonaomfmm",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
        })as websocket:

use this

Solana0x commented 1 week ago

this is for socks5?