Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit 74647b2

Browse files
iranlmathieucarbou
authored andcommitted
Add H2 support
1 parent 2fbf37d commit 74647b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/WebServer.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@
2424
using namespace asyncsrv;
2525

2626
bool ON_STA_FILTER(AsyncWebServerRequest* request) {
27+
#ifndef CONFIG_IDF_TARGET_ESP32H2
2728
return WiFi.localIP() == request->client()->localIP();
29+
#else
30+
return false;
31+
#endif
2832
}
2933

3034
bool ON_AP_FILTER(AsyncWebServerRequest* request) {
35+
#ifndef CONFIG_IDF_TARGET_ESP32H2
3136
return WiFi.localIP() != request->client()->localIP();
37+
#else
38+
return false;
39+
#endif
3240
}
3341

3442
#ifndef HAVE_FS_FILE_OPEN_MODE

0 commit comments

Comments
 (0)