clash.verge.configure_tun
Configure TUN settings in Clash config with a two-step confirmation for safety. First call gets a nonce, then confirm with nonce to apply changes.
Instructions
Configure TUN section in config.yaml (verge_clash_base owner). Strong confirmation required (call first without confirmed to get nonce, then retry with nonce). System-level verification included.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | TUN section patch (e.g. {enable: true, stack: "system"}) | |
| confirmed | Yes | Must be true to proceed (strong confirmation) | |
| confirmNonce | No | Nonce from first call, required for strong confirmation |