mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 13:59:10 +00:00
issues of parameter constraint for 'tun'
This commit is contained in:
parent
beb3d364a8
commit
15646925a7
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ pub struct Args {
|
||||||
|
|
||||||
/// Name of the tun interface, such as tun0, utun4, etc.
|
/// Name of the tun interface, such as tun0, utun4, etc.
|
||||||
/// If this option is not provided, the OS will generate a random one.
|
/// If this option is not provided, the OS will generate a random one.
|
||||||
#[arg(short, long, value_name = "name", conflicts_with = "tun_fd", value_parser = validate_tun)]
|
#[arg(short, long, value_name = "name", value_parser = validate_tun)]
|
||||||
|
#[cfg_attr(unix, arg(conflicts_with = "tun_fd"))]
|
||||||
pub tun: Option<String>,
|
pub tun: Option<String>,
|
||||||
|
|
||||||
/// File descriptor of the tun interface
|
/// File descriptor of the tun interface
|
||||||
|
|
Loading…
Add table
Reference in a new issue