Skip to content

pulse-server: IPv6 support

Barnabás Pőcze requested to merge pobrn/pipewire:pw_pulse_ipv6 into master

Add support for listening on IPv6 addresses. The following address formats are supported:

  • tcp:[<ipv6-addr>]:<port>,
  • tcp:<ipv4-addr>:<port>,
  • tcp:<port>, and
  • unix:<path>.

The IP addresses are parsed using inet_pton(), only the formats supported by that function are accepted.

The IPv6 address must be surrounded by square brackets, they do not mean optional here. Specifying only the port is equivalent to the following two addresses:

  • [::]:<port>, and
  • 0.0.0.0:<port>.

Address parsing has been made stricter: the port must always be specified explicitly.

Apart from the IPv6 related changes, module-native-protocol-tcp has been modified to use PW_PROTOCOL_PULSE_DEFAULT_PORT instead of a hard-coded string.

Fixes #1216 (closed).

Edited by Barnabás Pőcze

Merge request reports