Skip to content
Discussion options

You must be logged in to vote

When there is no matching rule, xray-core will use the first outbound. Therefore, a simple solution is to move 'direct' to the top of client's outbounds config, and move 'block' to the top of server's outbounds config.

Another solution is to add a universal rule #4371 at the bottom of routing rules:

{
	"type": "field",        // 兜底规则
	"network": "tcp,udp",   // 加入
	"outboundTag": "direct" // 其他流量走直连
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AtaarSatag
Comment options

@vrnobody
Comment options

Answer selected by AtaarSatag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants