esp32/network_ppp: Add ppp_set_usepeerdns(pcb, 1) when init'ing iface.

Without this you often don't get any DNS server from your network provider.
Additionally, setting your own DNS _does not work_ without this option set
(which could be a bug in the PPP stack).
This commit is contained in:
Eric Poulsen 2019-07-02 14:30:43 -07:00 committed by Damien George
parent c1a8c7fc09
commit fa5c0b819c
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ STATIC mp_obj_t ppp_active(size_t n_args, const mp_obj_t *args) {
mp_raise_msg(&mp_type_RuntimeError, "init failed");
}
pppapi_set_default(self->pcb);
ppp_set_usepeerdns(self->pcb, 1);
pppapi_connect(self->pcb, 0);
xTaskCreate(pppos_client_task, "ppp", 2048, self, 1, (TaskHandle_t*)&self->client_task_handle);