Fix hostname-based config.