Skip to content
Discussion options

You must be logged in to vote

@szkane @yikedu7
可以通过 global extend script 实现,这里给出示例:

// 定义需要排除的进程(不走TUN代理)
const excludeProcesses = [
    "WeChat.exe",
    "WeChatApp.exe"
];

function main(config) {
    const processRules = excludeProcesses.map(proc => 
        `PROCESS-NAME,${proc},DIRECT`
    );
    
    config.rules = [...processRules, ...config.rules];
    
    return config;
}

Replies: 6 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@LiMoon
Comment options

@Slinetrac
Comment options

@hengkx
Comment options

@chutney6
Comment options

@LiMoon
Comment options

Answer selected by Slinetrac
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request Windows Windows platform issue macOS MacOS platform issue
9 participants
Converted from issue

This discussion was converted from issue #4537 on October 16, 2025 03:27.