mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(esp_netif): Don't warn about disabling napt if wasn't enabled
This commit is contained in:
parent
050db26419
commit
d3567b080f
@ -2530,7 +2530,7 @@ static esp_err_t esp_netif_napt_control_api(esp_netif_api_msg_t *msg)
|
|||||||
/* Disable napt on all other interface */
|
/* Disable napt on all other interface */
|
||||||
esp_netif_t *netif = esp_netif_next_unsafe(NULL);
|
esp_netif_t *netif = esp_netif_next_unsafe(NULL);
|
||||||
while (netif) {
|
while (netif) {
|
||||||
if (netif != esp_netif) {
|
if (netif != esp_netif && netif->lwip_netif->napt == 1) {
|
||||||
ip_napt_enable_netif(netif->lwip_netif, 0); // Fails only if netif is down
|
ip_napt_enable_netif(netif->lwip_netif, 0); // Fails only if netif is down
|
||||||
ESP_LOGW(TAG, "napt disabled on esp_netif:%p", esp_netif);
|
ESP_LOGW(TAG, "napt disabled on esp_netif:%p", esp_netif);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user