I was trying to migrate from ss-libev to ss-rust. Due to some compatibility issues, I cannot run a single sslocal instance with multiple server in configuration files. Instead, I need to run two sslocal instances, each configured as a server, listening on the same port. I will use SO_REUSEPORT to achieve load balancing by listening on the same port.
我正在尝试从ss-libev转向ss-rust。因为一些兼容性原因,目前我无法使用运行一个sslocal实例 + 配置文件填写多个server的模式。而是需要运行两个sslocal实例,各使用一个server配置,通过监听相同的端口,利用SO_REUSEPORT实现监听同一端口进行负载均衡。