shadow_server: allow specifying IP addresses to listen on (#6050)
authorLinus Heckemann <git@sphalerite.org>
Tue, 5 May 2020 06:35:19 +0000 (08:35 +0200)
committerakallabeth <akallabeth@posteo.net>
Fri, 8 May 2020 09:06:02 +0000 (11:06 +0200)
commit3c24e10bf34fa645e8611aeff261949734d73c81
tree168c2a5429d92b2babf8121e560a83ca2607971b
parenteee9dead2d28ca99b0beeb8a56218fc05733974f
shadow_server: allow specifying IP addresses to listen on (#6050)

* shadow_server: allow specifying IP addresses to listen on

This allows using IPv6 as well as listening only on specific
interfaces. Additionally, it enables listening on local and TCP
sockets simultaneously.

* listener: log address with square brackets

This disambiguates IPv6 addresses.

* shadow_server: check error on each socket binding

* Refactored shadow /bind-address for 2.0 compiatibility.

* Made /ipc-socket and /bind-address incompatible arguments.

* Fixed shadow /bind-address handling and description

* Allow multiple bind addresses for shadow server.

Co-authored-by: akallabeth <akallabeth@posteo.net>
libfreerdp/core/listener.c
server/shadow/shadow_client.c
server/shadow/shadow_server.c