kimyuhuu Posted 22 hours ago Report Posted 22 hours ago (edited) proxy_url = http://test:[email protected]:6049 const httpAgent = new HttpProxyAgent(proxy_url); const httpsAgent = new HttpsProxyAgent(proxy_url); const requestInstance = require('request').defaults({ proxy: proxy_url agent:{ http: httpAgent, https: httpsAgent }, timeout:30000 }); let community = new SteamCommunity({ request: requestInstance, httpAgent: httpAgent, httpsAgent: httpsAgent, localAddress: null }); let manager = new TradeOfferManager({ steam: client, community: community, language: 'en', pollInterval: 10000, cancelTime: 300000, pendingCancelTime: 300000, globalAssets: false, savePollData: false, requestOptions: { proxy: proxy_url, agent: { http: httpAgent, https: httpsAgent }, localAddress: null } }); manager.on('newOffer', (offer) => { if (offer.itemsToGive.length === 0 && offer.itemsToReceive.length > 0) { if (offer.state === TradeOfferManager.ETradeOfferState.Active) { offer.accept((err, status) => { if (err) { acceptErrorCount++; } else { acceptSuccessCount++; } }); } else { console.log('skip.'); } } else { console.log('deny.'); offer.decline(); } }); hi, i have proxy and it working well until proxy timeout (die), this connection redirect to my main ip, did i set up wrong or something? thank you and have a nice day Edited 5 hours ago by kimyuhuu Quote
kimyuhuu Posted 1 hour ago Author Report Posted 1 hour ago (edited) Hi guys, how can i avoid this? Its literally like this image for my 100 account, then i'm not using community and manager lib until now it already fine but i cannot accept gift. Thank you and have a nice day Edited 1 hour ago by kimyuhuu Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.