The several collectors of the customs shall detain any vessel manifestly built for warlike purposes, and about to depart the United States, or any place subject to the jurisdiction thereof, the cargo of which principally consists of arms and munitions of war, when the number of men shipped on board, or other circumstances, render it probable that such vessel is intended to be employed by the owners to cruise or commit hostilities upon the subjects, citizens, or property of any foreign prince or state, or of any colony, district, or people with whom the United States are at peace, until the decision of the President is had thereon, or until the owner gives such bond and security as is required of the owners of armed vessels by section 463 of this title.
22 U.S. Code § 464 - Detention by collectors of customs
Offices of collector of customs, comptroller of customs, surveyor of customs, and appraiser of merchandise of Bureau of Customs of Department of the Treasury to which appointments were required to be made by President with advice and consent of Senate ordered abolished, with such offices to be terminated not later than Dec. 31, 1966, by Reorg. Plan No. 1, of 1965 eff. May 25, 1965, 30 F.R. 7035, 79 Stat. 1317, set out in the Appendix to Title 5, Government Organization and Employees. Functions of Offices eliminated were already vested in Secretary of the Treasury by Reorg. Plan No. 26 of 1950, eff. July 31, 1950, 15 F.R. 4935, 64 Stat. 1280, set out in the Appendix to Title 5.