For land pipelines thiere no eqauvalent of the United Nations Convention on the Law of the Sea according to which both Oman and Iran should allow free passage of ships. And "normal" path lies on Oman's waters which dones't stop Iran from attacking ships there. The strait toll is a pure racketeering.
The UNCLOS, you say? Guess which two countries haven't signed/ratified it: US and Israel.
So yeah, I don't see Iran paying much attention to the UNCLOS.
What does the UN convention says about killing civilians and destroying civilian infrastructure?
I think any such pretenses were abandoned right off the start.