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