mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
fix bug in the detection of the multi-kernel mode
This commit is contained in:
parent
f4d566c161
commit
83f185980a
2 changed files with 5 additions and 5 deletions
|
@ -107,7 +107,7 @@ int is_proxy(void)
|
|||
{
|
||||
// search in the command line for the "proxy" hint
|
||||
char* found = strstr((char*) (size_t) mb_info->cmdline, "-proxy");
|
||||
if (!found)
|
||||
if (found)
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -253,10 +253,10 @@ success:
|
|||
|
||||
ip_counter++;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ip_2_ip4(&default_netif.ip_addr)->addr)
|
||||
return -ENODEV;
|
||||
if (!ip_2_ip4(&default_netif.ip_addr)->addr)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -406,7 +406,7 @@ static int initd(void* arg)
|
|||
// initialize network
|
||||
err = init_netifs();
|
||||
|
||||
if ((err != 0) || is_proxy())
|
||||
if ((err != 0) || !is_proxy())
|
||||
{
|
||||
char* dummy[] = {"app_name", NULL};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue