diff options
author | Stefan Becker <chemobejk@gmail.com> | 2019-06-27 13:33:25 +0300 |
---|---|---|
committer | Stefan Becker <chemobejk@gmail.com> | 2019-06-27 19:52:31 +0300 |
commit | 099ff65c0371483ded4a3a7e905adfeea0faf6f6 (patch) | |
tree | c479913e8fd5e3de591bff5ba63daaaace270cca | |
parent | 056de4aeed8def0e2942c8ebb74bb3bd96b44a93 (diff) | |
download | libnice-099ff65c0371483ded4a3a7e905adfeea0faf6f6.tar.gz |
build: add default ignore network interface prefix
By default libnice now ignores network interfaces from virtual machines
and containers, i.e. names that start with "docker", "veth", "virbr" and
"vnet".
If you want to disable this feature override the default with
./configure --without-ignored-network-interface-prefix ...
./configure --with-ignored-network-interface-prefix= ...
meson setup -D ignored-network-interface-prefix= ...
meson setup -D ignored-network-interface-prefix=[] ...
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 42d1fe9..c1367c4 100644 --- a/configure.ac +++ b/configure.ac @@ -402,7 +402,8 @@ AC_ARG_WITH([ignored-network-interface-prefix], [Ignore network interfaces whose name starts with a string from this list in the ICE connection check algorithm. For example, interfaces "virbr" in the case of the virtual bridge handled by libvirtd, do not help in finding connectivity.])], - [interface_prefix="$withval"]) + [interface_prefix="$withval"], + [interface_prefix="docker,veth,virbr,vnet"]) AS_IF([test -n "$interface_prefix" && test "x$interface_prefix" != "xno"], [[interface_prefix_list=`echo $interface_prefix | sed 's/,/","/g'`] AC_DEFINE_UNQUOTED([IGNORED_IFACE_PREFIX],["$interface_prefix_list"], diff --git a/meson_options.txt b/meson_options.txt index 9f9f7d6..cd980cb 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,7 +2,7 @@ option('gupnp', type: 'feature', value: 'auto', description: 'Enable or disable GUPnP IGD support') option('gstreamer', type: 'feature', value: 'auto', description: 'Enable or disable build of GStreamer plugins') -option('ignored-network-interface-prefix', type: 'array', value: [], +option('ignored-network-interface-prefix', type: 'array', value: ['docker', 'veth', 'virbr', 'vnet'], description: 'Ignore network interfaces whose name starts with a string from this list in the ICE connection check algorithm. For example, "virbr" to ignore virtual bridge interfaces added by virtd, which do not help in finding connectivity.') option('crypto-library', type: 'combo', choices : ['auto', 'gnutls', 'openssl'], value : 'auto') |