From fa5c0b819c33fe81b0292570a7a1d07b6733b988 Mon Sep 17 00:00:00 2001 From: Eric Poulsen Date: Tue, 2 Jul 2019 14:30:43 -0700 Subject: [PATCH] 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). --- ports/esp32/network_ppp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/esp32/network_ppp.c b/ports/esp32/network_ppp.c index 96d9ead305..8065409158 100644 --- a/ports/esp32/network_ppp.c +++ b/ports/esp32/network_ppp.c @@ -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);