Set Category of the TUN device's network profile to 1 in Windows Registry

This commit is contained in:
Hs_Yeah
2024-09-24 08:17:58 +08:00
committed by Sijie.Sun
parent d1e2e1db2b
commit 92397bf7b6
2 changed files with 61 additions and 10 deletions

View File

@@ -227,6 +227,10 @@ impl GlobalCtx {
self.config.get_flags()
}
pub fn set_flags(&self, flags: Flags) {
self.config.set_flags(flags);
}
pub fn get_128_key(&self) -> [u8; 16] {
let mut key = [0u8; 16];
let secret = self