Skip to content

Commit

Permalink
android增加wg选项
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Jul 31, 2024
1 parent 13df028 commit e523b02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vnt/src/handle/recv_data/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,10 @@ impl<Call: VntCallback, Device: DeviceWrite> ServerPacketHandler<Call, Device> {
} else {
match tun::Device::new(device_fd as _) {
Ok(device) => {
if let Err(e) =
self.tun_device_helper.start(Arc::new(device))
{
if let Err(e) = self.tun_device_helper.start(
Arc::new(device),
self.config_info.allow_wire_guard,
) {
self.callback.error(ErrorInfo::new_msg(
ErrorType::Unknown,
format!("{:?}", e),
Expand Down

0 comments on commit e523b02

Please sign in to comment.