Functionsis_v4Version: NextOn this pageis_v4Checks whether an IP address has version number 4.is_v4(x:ip) -> boolDescriptionThe ipv4 function checks whether the version number of a given IP address x is 4.ExamplesCheck if an IP is IPv4from { x: 1.2.3.4.is_v4(), y: ::1.is_v4(), }{ x: true, y: false, }See Alsois_v6