mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-21 22:39:08 +00:00
Bump version 0.4.1
This commit is contained in:
parent
15646925a7
commit
187e251142
3 changed files with 8 additions and 5 deletions
5
.github/workflows/rust.yml
vendored
5
.github/workflows/rust.yml
vendored
|
@ -33,7 +33,10 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
run: cargo build --verbose --tests --all-features
|
run: |
|
||||||
|
cargo build --verbose --tests --all-features
|
||||||
|
cargo clean
|
||||||
|
cargo build --verbose
|
||||||
|
|
||||||
- name: Abort on error
|
- name: Abort on error
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tun2proxy"
|
name = "tun2proxy"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/blechschmidt/tun2proxy"
|
repository = "https://github.com/blechschmidt/tun2proxy"
|
||||||
|
@ -34,7 +34,7 @@ thiserror = "1"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
tokio-util = "0.7"
|
tokio-util = "0.7"
|
||||||
tproxy-config = { version = "6", default-features = false }
|
tproxy-config = { version = "6", default-features = false }
|
||||||
tun2 = { version = "2", features = ["async"] }
|
tun2 = { version = "3", features = ["async"] }
|
||||||
udp-stream = { version = "0.0.12", default-features = false }
|
udp-stream = { version = "0.0.12", default-features = false }
|
||||||
unicase = "2"
|
unicase = "2"
|
||||||
url = "2"
|
url = "2"
|
||||||
|
|
|
@ -6,7 +6,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
use std::os::raw::{c_char, c_int};
|
use std::os::raw::{c_char, c_int};
|
||||||
use tproxy_config::{TproxyArgs, TUN_GATEWAY, TUN_IPV4, TUN_NETMASK};
|
use tproxy_config::{TproxyArgs, TUN_GATEWAY, TUN_IPV4, TUN_NETMASK};
|
||||||
use tun2::DEFAULT_MTU as MTU;
|
use tun2::{AbstractDevice, DEFAULT_MTU as MTU};
|
||||||
|
|
||||||
static TUN_QUIT: std::sync::Mutex<Option<tokio_util::sync::CancellationToken>> = std::sync::Mutex::new(None);
|
static TUN_QUIT: std::sync::Mutex<Option<tokio_util::sync::CancellationToken>> = std::sync::Mutex::new(None);
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ pub async fn desktop_run_async(args: Args, shutdown_token: tokio_util::sync::Can
|
||||||
|
|
||||||
let device = tun2::create_as_async(&tun_config)?;
|
let device = tun2::create_as_async(&tun_config)?;
|
||||||
|
|
||||||
if let Ok(tun_name) = device.as_ref().tun_name() {
|
if let Ok(tun_name) = device.tun_name() {
|
||||||
tproxy_args = tproxy_args.tun_name(&tun_name);
|
tproxy_args = tproxy_args.tun_name(&tun_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue