Skip to content

Issue with YouTube #47

Description

@ztomas-codes

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}`);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions