Commit 6bf1b38
[lightning-ln882h] Restore DNS servers after DHCP fallback on reconnect (libretiny-eu#375)
When the reconnect/roam fallback path fires (wifiApplyStaticIpCallback),
LwIP's dhcp_recv() has already updated the DNS table via DHCP option 6
before we could stop DHCP. Restore info.dns1/dns2 after netif_set_addr()
to ensure the user-configured DNS servers survive reconnects.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1006e24 commit 6bf1b38
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
| |||
0 commit comments