Contents

localOnly(_:)

Limit inbound connections to peers attached to the local link.

Declaration

func localOnly(_ local: Bool) -> Self

Parameters

  • local:

    True if limited to local peers, false otherwise.

Discussion

Listeners will only advertise services on the local link and will only accept connections from the local link.