You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] The FAQ doesn't contain a resolution to my issue
Versions
minecraft-protocol: 1.19.0
server: vanilla/spigot/paper 1.12.2
node: v14.5.0.
Detailed description of a problem
ok so when i use a proxy on a non cracked server it cannot connect/auth because it tries to connect to localhost since you call connect instead of host and port
Current code
process.env["NODE_TLS_REJECT_UNAUTHORIZED"]=0;varmc=require('minecraft-protocol');vartokens=require('prismarine-tokens');constsocks=require('socks').SocksClientconstProxyAgent=require('proxy-agent')constconfig=require("./config.json")varoptions={connect: client=>{socks.createConnection({proxy: {host: config.proxy_ip,port: parseInt(config.proxy_port),type: 5,userId: config.proxy_username,password: config.proxy_password},command: 'connect',destination: {host: config.server_ip,port: parseInt(config.server_port)}},(err,info)=>{if(err){console.log(err)return}client.setSocket(info.socket)client.emit('connect')})},agent: newProxyAgent({protocol: 'socks5:',host: config.proxy_ip,port: parseInt(config.proxy_port),userId: config.proxy_username,password: config.proxy_password}),username: config.email,password: config.password,//Location of the file to store and read tokens for this bot//You can use the same file for all your botstokensLocation: `tokens/${config.email}_token.json`,//Set to true if you want debug informationstokensDebug: true};tokens.use(options,function(_err,_opts){if(_err)throw_err;varbot=mc.createClient(_opts);bot.once('spawn',()=>{console.log(`Connected ${bot.username} To ${config.server_ip}:${config.server_port} With ${config.proxy_ip}:${config.proxy_port}`)})bot.on('connect',function(){console.info(`Connected ${bot.username} To ${config.server_ip}:${config.server_port} With ${config.proxy_ip}:${config.proxy_port}`);});bot.on('chat',function(username,message){if(username=="queue"){console.log(`${bot.username} -> ${message} in queue! ${config.proxy_ip}:${config.proxy_port}}`);}elseconsole.log(`${bot.username} -> ${message}`)})});
Expected behavior
be able to join servers
The text was updated successfully, but these errors were encountered:
[ ] The FAQ doesn't contain a resolution to my issue
Versions
Detailed description of a problem
ok so when i use a proxy on a non cracked server it cannot connect/auth because it tries to connect to localhost since you call connect instead of host and port
Current code
Expected behavior
be able to join servers
The text was updated successfully, but these errors were encountered: