Fix default connection detection when not explicitly set in the config