Coder Social home page Coder Social logo

mylittleproxy's Introduction

My Little Proxy

This is not My Little Pony.

How to install : You first need to install nodejs. Then all that is needed is :

git clone git://github.com/roblabla/MyLittleProxy.git
cd MyLittleProxy
npm install

Once that's done, you'll need to edit index.js's options, and you're done.

node index.js

mylittleproxy's People

Contributors

roblabla avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mylittleproxy's Issues

Switching servers

Hello!
I'm working on proxy too, but one of the best features is being able to switch servers that sit behind proxy.
I made array with servers {name: [ip, port], [....]} and trying to switch server on plugin message with data "Connect".
Here's is code, that takes data from packet:

if(packet.id == 0x3f)
    {
        if(packet.data.toString().substring(2, 9) == 'Connect')
        {
            var server = servers[packet.data.toString().substring(11)];

All works, but there comes switching remote connection to new one. I'm stuck at this:

switching = true;
var oldremote = remoteclient;
var newremote = {
    host: serwer[0],
    port: serwer[1],
    online_mode: false,
    force_username: false,
    username: 'asd',
    password: 'qwe',
};
var newremoteclient = mc.createClient(newremote);
newremoteclient.once('login', function (){
    remoteclient = newremoteclient;
    // oldremote.endSocket();
    switching = false;
});

and this produces:

Error: ForbiddenOperationException
    at /home/nodeproxy/MyLittleProxy/node_modules/minecraft-protocol/lib/yggdrasil.js:51:23
    at Request.callback (/home/nodeproxy/MyLittleProxy/node_modules/minecraft-protocol/node_modules/superagent/lib/node/index.js:575:3)
    at Request.<anonymous> (/home/nodeproxy/MyLittleProxy/node_modules/minecraft-protocol/node_modules/superagent/lib/node/index.js:133:10)
    at Request.emit (events.js:95:17)
    at IncomingMessage.<anonymous> (/home/nodeproxy/MyLittleProxy/node_modules/minecraft-protocol/node_modules/superagent/lib/node/index.js:703:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:943:16
    at process._tickCallback (node.js:419:13)

I'll fight with it, but that's my point for now.

java.lang.NullPointerException: Ticking screen

Every time I try and join a server through the proxy, the vanilla client crashes with "ticking screen" error
I am connecting to a 1.7.10 vanilla local server,
Connecting to the server directly works, no issues at all.
Connecting to the server through the proxy gives me "java.lang.NullPointerException: Ticking screen"
The proxy itself gives me "Error: { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }"

Any ideas why the client crashes when going through the proxy?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.