Watfaq / clash-rs

custom protocol network proxy
https://watfaq.gitbook.io/clashrs-user-manual/
Apache License 2.0
812 stars 65 forks source link

Switching from an error node to a normal node needs to restart the core #257

Open xmh0511 opened 10 months ago

xmh0511 commented 10 months ago

When using node A, once the node A becoms error, then manually switch from node A to a work node B, I must restart the clash-rs, then the traffic proxy can work.

The relevant logs are:

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.166858Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.299102Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.299141Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.395064Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.395154Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.527143Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.527173Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.702915Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.702946Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.703303Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.703330Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.710480Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.710506Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

The clash-premium does not have this issue.

ibigbug commented 10 months ago

Is it a select group? Can you turn on the debug log and post it here when you can't change node?

xmh0511 commented 10 months ago

https://github.com/Watfaq/clash-rs/assets/17973891/92139fa0-e1f9-43e2-82b8-d505c9f5b33a

See this video