Detect if captive portal page is accessed in AP-Mode?

Hi,

i’m creating a usermod where i need to know, if the capitve portal page has been accessed in AP mode. By calling “WiFi.softAPgetStationNum()” it’s possible to get the number of connected clients, but this counts all clients - those connected to the SSID and those which already opened the capitive portal page.

kind regards,

Christoph