fix load from file (ip4/6 or dns) check.