Configure DNS servers once Android boot is done
This commit is contained in:
parent
7285c2e4ed
commit
8de875e9ea
1 changed files with 7 additions and 6 deletions
|
|
@ -121,13 +121,14 @@ anbox::cmds::Run::Run(const BusFactory& bus_factory)
|
||||||
// more than one one day we need proper dispatching to the right one.
|
// more than one one day we need proper dispatching to the right one.
|
||||||
android_api_stub->set_rpc_channel(rpc_channel);
|
android_api_stub->set_rpc_channel(rpc_channel);
|
||||||
|
|
||||||
dispatcher->dispatch([&]() {
|
|
||||||
// FIXME make this configurable or once we have a bridge let the host
|
|
||||||
// act as a DNS proxy.
|
|
||||||
android_api_stub->set_dns_servers("anbox", std::vector<std::string>{ "8.8.8.8" });
|
|
||||||
});
|
|
||||||
|
|
||||||
auto server = std::make_shared<ubuntu::PlatformApiSekeleton>(pending_calls);
|
auto server = std::make_shared<ubuntu::PlatformApiSekeleton>(pending_calls);
|
||||||
|
server->on_boot_finished([&]() {
|
||||||
|
dispatcher->dispatch([&]() {
|
||||||
|
// FIXME make this configurable or once we have a bridge let the host
|
||||||
|
// act as a DNS proxy.
|
||||||
|
android_api_stub->set_dns_servers("anbox", std::vector<std::string>{ "8.8.8.8" });
|
||||||
|
});
|
||||||
|
});
|
||||||
return std::make_shared<bridge::PlatformMessageProcessor>(sender, server, pending_calls);
|
return std::make_shared<bridge::PlatformMessageProcessor>(sender, server, pending_calls);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue