automatically insert ip into asset/publish host when {{ip}} is seen

I have switched from using for in to a keys.forEach from a comment before, but I am kinda curious now, what's wrong with a for in?