Test permission change for setting proxy

This commit is contained in:
Thoronium 2023-04-05 23:10:05 -06:00
parent b2d6f390fb
commit cf6ec3da82

View File

@ -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();