A Listen address should be passable from the command line
@anderson
Submitted by Stuart Anderson Assigned to Xorg Project Team
Description
It would be useful to be able to pass in a hostname/IP on which the X Server would listen as part of the display specification (ie host:0). This would provide more granularity than --nolisten tcp.
The changes for this need to be made where the display is parsed and placed intot he global variable "display", which is then used in CreateWellKnownSockets() where it is passed into the Xtrans code (via _XSERVTransMakeAllCOTSServerListeners()). TRANS(SocketINETCreateListener)() also needs to be adjusted to use the hostname passed in instead of INADDR_ANY.
One aspect that needs a little bit more thought, is how to handle non-INET transports when a hostname is passed in. Perhaps each transport will just have to decide how it wants to intepret (or ignore) the host part of the listener address.