Browse Source

On Apple we need to stay root because otherwise it is impossible to change addresses/routes

Caleb James DeLisle 3 years ago
parent
commit
41e760ce4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/cjdroute2.c

+ 1 - 1
client/cjdroute2.c

@@ -356,7 +356,7 @@ static int genconf(struct Allocator* alloc, struct Random* rand, bool eth, bool
            "        // and ETHInterface will be unable to hot-add new interfaces\n"
            "        // Use { \"setuser\": 0 } to disable.\n"
            "        // Default: enabled with keepNetAdmin\n");
-           if (Defined(android)) {
+           if (Defined(android) || Defined(darwin)) {
     printf("        { \"setuser\": 0 },\n");
            } else {
     printf("        { \"setuser\": \"nobody\", \"keepNetAdmin\": 1 },\n");