mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
9 lines
328 B
Plaintext
9 lines
328 B
Plaintext
polkit.addRule(function(action, subject) {
|
|
if ((action.id == "org.freedesktop.resolve1.set-domains" ||
|
|
action.id == "org.freedesktop.resolve1.set-default-route" ||
|
|
action.id == "org.freedesktop.resolve1.set-dns-servers") &&
|
|
subject.user == "sing-box") {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|