fix don't show the host name when there is no network connection