§ 5948. Consular powers: senior officer present afloat
In any foreign port where there is no resident consul of the United States, or on the high seas, the senior officer present afloat has the powers of a consul in relation to mariners of the United States.