transparent-proxy
transparent-proxy copied to clipboard
Issue with YouTube
Im really noob in proxy servers.. But i dont know why Youtube video streaming in iphone application is not working? here is my code:
const ProxyServer = require('transparent-proxy');
const express = require('express');
const app = express();
const server = new ProxyServer({});
server.listen(9000, '0.0.0.0', function () {
console.log('TCP-Proxy-Server started!', server.address());
});
app.get('/connections', (req, res) => {
const bridgedConnections = server.getBridgedConnections();
const connections = Object.values(bridgedConnections).map(conn => ({
address: conn._tunnel.ADDRESS,
}));
res.json(connections);
});
const PORT = 3000;
app.listen(PORT, () => {
console.log(`Express server is running at http://localhost:${PORT}`);
});