Allow to run as non-root
This commit is contained in:
parent
f5bff09ffe
commit
ac7097727a
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user