I found out that global.h doesn't include a DNS in WiFi.config(ip, dns, gateway, subnet);
A quick and dirty solution will be:
WiFi.config(IPAddress(config.ip[0], config.ip[1], config.ip[2], config.ip[3] ), IPAddress(8,8,8,8), IPAddress(config.gateway[0], config.gateway[1], config.gateway[2], config.gateway[3] ) , IPAddress(config.netmask[0], config.netmask[1], config.netmask[2], config.netmask[3] ));
If I disable DHCP, NTP won't work.
I found out that global.h doesn't include a DNS in WiFi.config(ip, dns, gateway, subnet); A quick and dirty solution will be: WiFi.config(IPAddress(config.ip[0], config.ip[1], config.ip[2], config.ip[3] ), IPAddress(8,8,8,8), IPAddress(config.gateway[0], config.gateway[1], config.gateway[2], config.gateway[3] ) , IPAddress(config.netmask[0], config.netmask[1], config.netmask[2], config.netmask[3] ));
However I am working on a fix.