增加打洞选项

This commit is contained in:
lubeilin
2023-09-04 20:34:43 +08:00
parent 954f0d2d05
commit 073c820da6
5 changed files with 55 additions and 9 deletions
+2
View File
@@ -8,6 +8,7 @@ use jni::objects::{JClass, JObject, JString, JValue};
use jni::sys::jboolean;
use jni::sys::{jint, jlong, jobject};
use jni::JNIEnv;
use vnt::channel::punch::PunchModel;
use vnt::cipher::CipherModel;
use vnt::core::sync::VntUtilSync;
use vnt::core::Config;
@@ -117,6 +118,7 @@ fn new_sync(env: &mut JNIEnv, config: JObject) -> Result<VntUtilSync, Error> {
1,
cipher_model,
finger,
PunchModel::All,
);
match VntUtilSync::new(config) {
Ok(vnt_util) => Ok(vnt_util),