mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
10 lines
299 B
Plaintext
10 lines
299 B
Plaintext
|
/* Allow lokinet to set DNS settings */
|
||
|
polkit.addRule(function(action, subject) {
|
||
|
if ((action.id == "org.freedesktop.resolve1.set-dns-servers" ||
|
||
|
action.id == "org.freedesktop.resolve1.set-domains") &&
|
||
|
subject.user == "_lokinet") {
|
||
|
return polkit.Result.YES;
|
||
|
}
|
||
|
});
|
||
|
|