[AIRFLOW-4862] Fix bug for earlier change to allow using IP as hostname (#5513)
[AIRFLOW-4862] Fix bug for earlier change to allow using IP as hostname (#5513)


(cherry picked from commit 0fe8cbe31484f7ca390725b684e620355ac222df)

owlabs/incubator-airflow,owlabs/incubator-airflow,owlabs/incubator-airflow,owlabs/incubator-airflow