Iran won’t allow military vessels to transit through the Strait of Hormuz under an agreement that the Islamic Republic is negotiating with Oman, Iran’s deputy foreign minister said.

The top diplomats of the two countries met to discuss managing commercial shipping traffic in the vital waterway, which remains largely shut down nearly six months after the Iran war began.