dyhkwong / SagerNet

A fork of SagerNet powered by V2Ray and its derivatives, mainly for satisfying personal needs.
Other
162 stars 17 forks source link

SSH proxy doesn't work in a balancer #6

Closed attarchi closed 5 months ago

attarchi commented 6 months ago

First of all, I want to thank you for your great work. This fork is awesome.

I'm using version 0.8.8

Describe the bug

If we have an SSH connection in a balancer, the SSH is never used

To Reproduce

Add two proxies one of them should be an SSH. Add a balancer so that it has both of those proxies. Select the balancer profile and connect.

There is no difference between the balancer strategies (Random/Ping), and the balancer type (List/Group). I tested all of them.

Debug Information

Is it necessary for all bugs?

Expected behavior

The SSH proxy should be used the same as the other proxies

Smartphone (please complete the following information)

Additional context

I'm not experienced in java and golang. I think the v2ray core has no support for SSH connection and it should be handled by socks outbound and an external SSH connection. I don't know.

dyhkwong commented 6 months ago

Official v2ray-core has no support for SSH proxy but SagerNet's fork (and also this project) has. SSH proxy is handled internally. The balancer code is a mess and may have some bugs, but I don't think it is only related to SSH proxy. Please post your logs here.

attarchi commented 6 months ago

Thank you very much for your response and patience. This is my log file. I only replaced my server IP with "MY-SSH-IP" SagerNet 247170347044913604.log