Mtu fix
modified: frida_client/src/client.rs
This commit is contained in:
parent
ec0cb7cbdf
commit
c490b9d9af
@ -179,7 +179,7 @@ pub mod android {
|
|||||||
impl VpnClient for AndroidClient {
|
impl VpnClient for AndroidClient {
|
||||||
async fn start(&self) {
|
async fn start(&self) {
|
||||||
info!("FD: {:?}", &self.fd);
|
info!("FD: {:?}", &self.fd);
|
||||||
let mtu: u16 = 1500;
|
let mtu: u16 = 1400;
|
||||||
let (reader, writer) = frida_core::create(self.fd);
|
let (reader, writer) = frida_core::create(self.fd);
|
||||||
let mut client = CoreVpnClient{client_config: self.client_config.clone(), close_token: self.close_token.clone()};
|
let mut client = CoreVpnClient{client_config: self.client_config.clone(), close_token: self.close_token.clone()};
|
||||||
info!("SSS: {:?}", &self.client_config.server.endpoint);
|
info!("SSS: {:?}", &self.client_config.server.endpoint);
|
||||||
@ -310,7 +310,7 @@ pub mod desktop {
|
|||||||
async fn start(&self) {
|
async fn start(&self) {
|
||||||
info!("client_address: {:?}", &self.client_config.client.address);
|
info!("client_address: {:?}", &self.client_config.client.address);
|
||||||
let mut config = AbstractDevice::default();
|
let mut config = AbstractDevice::default();
|
||||||
let mtu: u16 = 1500;
|
let mtu: u16 = 1400;
|
||||||
config.address(self.client_config.client.address.parse().unwrap())
|
config.address(self.client_config.client.address.parse().unwrap())
|
||||||
.netmask(Ipv4Addr::new(255, 255, 255, 255))
|
.netmask(Ipv4Addr::new(255, 255, 255, 255))
|
||||||
.destination(Ipv4Addr::new(10, 66, 66, 1))
|
.destination(Ipv4Addr::new(10, 66, 66, 1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user