mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-01-08 12:07:45 +08:00
Test permission change for setting proxy
This commit is contained in:
parent
b2d6f390fb
commit
cf6ec3da82
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user