Contents

version(_:)

Specify a single version of the Internet Protocol to allow.

Declaration

func version(_ version: NWProtocolIP.Options.Version) -> IP

Parameters

  • version:

    The IP version, IPv4 or IPv6.

Discussion

Setting this value will constrain which address endpoints can be used and will filter DNS results during connection establishment.