[fix] dash not accepted in hostname