Allow to run as non-root

This commit is contained in:
Michele Guerini Rocco 2023-06-17 23:22:59 +02:00
parent f5bff09ffe
commit ac7097727a
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -46,11 +46,6 @@ int main(int argc, char** argv) {
char* fileName = (char*)"route.conf";
int op;
if (getuid()) {
fprintf(stderr, "Must be root to run fakeroute.\n");
exit(1);
}
while ((op = getopt(argc, argv, "hf:")) != -1) {
switch (op) {
case 'h':