fix client connects by hostname