I'm wondering why is WifiClient used for Ethernet connection?
I mean, it works, but it's a bit misleading. Specially if one is to use actual WIFI instead.
It might be better to ask the in the espressif forums or GitHub where the Arduino for ESP32 is located.