fix bug : when Conf.Addr is empty then use localhost instead