From cf6ec3da8296ecb4bdce6bc29ed0d8580d01fa22 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Wed, 5 Apr 2023 23:10:05 -0600 Subject: [PATCH] Test permission change for setting proxy --- src-tauri/src/proxy.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/proxy.rs b/src-tauri/src/proxy.rs index aa7852a..b751b21 100644 --- a/src-tauri/src/proxy.rs +++ b/src-tauri/src/proxy.rs @@ -171,7 +171,8 @@ pub fn connect_to_proxy(proxy_port: u16) { let settings = Hive::CurrentUser .open( r"Software\Microsoft\Windows\CurrentVersion\Internet Settings", - Security::Write, + // Only write should be needed but too many cases of Culti not being able to read/write proxy settings + Security::AllAccess, ) .unwrap(); @@ -218,7 +219,7 @@ pub fn disconnect_from_proxy() { let settings = Hive::CurrentUser .open( r"Software\Microsoft\Windows\CurrentVersion\Internet Settings", - Security::Write, + Security::AllAccess, ) .unwrap();