Closed its0ka closed 6 days ago
Because choosing an interface is actually 'attaching' to a request, if the attachment fails, the connection will continue. As far as I know, some people actually rely on this' fallback ', and I tend not to make any changes when It's unsure which option is better
Perhaps you can also set sendthrough
, it should fail when tun0 is offline
@Fangliding what about an option? the ip address on the interface is dynamic
Sockopt already has too many options. If there are more people who need it, I think we can consider adding it
I think you can use policy based routing instead of xray's sockopt
Integrity requirements
Description
i have 2 network interfaces on the server, first is for inbound connections (eth0) and second (tun0) for outbound, but the second interface can sometimes fail to appear and then xray leaks all data to the first interface (i think it's better to fail the connection, hysteria2 works this way and fails the connection).
Reproduction Method
run the config and use
curl -v --socks5 127.0.0.1 1.1.1.1
, it should fail but it passesClient config
-
Server config
Client log
-
Server log