mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-01 03:15:42 +00:00
add log message for arduino 3.0.0 and above and enable ipv6 by default
This commit is contained in:
parent
2537c9505b
commit
9783fca1fc
@ -22,7 +22,7 @@
|
||||
#define min_node_info_broadcast_secs 60 * 60 // No regular broadcasts of more than once an hour
|
||||
#define min_neighbor_info_broadcast_secs 4 * 60 * 60
|
||||
#define default_map_publish_interval_secs 60 * 60
|
||||
#define default_network_ipv6_enabled false
|
||||
#define default_network_ipv6_enabled true
|
||||
|
||||
#define default_mqtt_address "mqtt.meshtastic.org"
|
||||
#define default_mqtt_username "meshdev"
|
||||
|
@ -654,7 +654,7 @@ void NodeDB::installDefaultConfig(bool preserveKey = false)
|
||||
strncpy(config.network.wifi_psk, USERPREFS_NETWORK_WIFI_PSK, sizeof(config.network.wifi_psk));
|
||||
#endif
|
||||
|
||||
#if defined(ARCH_ESP32) && defined(USERPREFS_NETWORK_IPV6_ENABLED)
|
||||
#if defined(USERPREFS_NETWORK_IPV6_ENABLED)
|
||||
config.network.ipv6_enabled = USERPREFS_NETWORK_IPV6_ENABLED;
|
||||
#else
|
||||
config.network.ipv6_enabled = default_network_ipv6_enabled;
|
||||
|
@ -347,7 +347,9 @@ static void WiFiEvent(WiFiEvent_t event)
|
||||
LOG_INFO("Connected to access point");
|
||||
if (config.network.ipv6_enabled) {
|
||||
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
|
||||
WiFi.enableIPv6();
|
||||
if (!WiFi.enableIPv6()) {
|
||||
LOG_WARN("Failed to enable IPv6");
|
||||
}
|
||||
#else
|
||||
if (!WiFi.enableIpV6()) {
|
||||
LOG_WARN("Failed to enable IPv6");
|
||||
|
Loading…
Reference in New Issue
Block a user