mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
Test permission change for setting proxy
This commit is contained in:
@@ -171,7 +171,8 @@ pub fn connect_to_proxy(proxy_port: u16) {
|
|||||||
let settings = Hive::CurrentUser
|
let settings = Hive::CurrentUser
|
||||||
.open(
|
.open(
|
||||||
r"Software\Microsoft\Windows\CurrentVersion\Internet Settings",
|
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();
|
.unwrap();
|
||||||
|
|
||||||
@@ -218,7 +219,7 @@ pub fn disconnect_from_proxy() {
|
|||||||
let settings = Hive::CurrentUser
|
let settings = Hive::CurrentUser
|
||||||
.open(
|
.open(
|
||||||
r"Software\Microsoft\Windows\CurrentVersion\Internet Settings",
|
r"Software\Microsoft\Windows\CurrentVersion\Internet Settings",
|
||||||
Security::Write,
|
Security::AllAccess,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user