forked from espressif/esp-idf
Merge branch 'fix/netif_napt_fix' into 'master'
fix(esp_netif): Don't warn about disabling napt if wasn't enabled See merge request espressif/esp-idf!31076
This commit is contained in:
@@ -2537,7 +2537,7 @@ static esp_err_t esp_netif_napt_control_api(esp_netif_api_msg_t *msg)
|
||||
/* Disable napt on all other interface */
|
||||
esp_netif_t *netif = esp_netif_next_unsafe(NULL);
|
||||
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
|
||||
ESP_LOGW(TAG, "napt disabled on esp_netif:%p", esp_netif);
|
||||
}
|
||||
|
Reference in New Issue
Block a user