summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2015-10-30 10:44:17 -0500
committerJeremy White <jwhite@codeweavers.com>2015-11-02 10:11:07 -0600
commitf73ca7e4cc090772652611a4e2b8b95ae64319bc (patch)
treee7223b552a7e5d3a4ad038e3dd616c42459d2580
parent3475eb2cd7b251dd49989c079a2452df67a85b14 (diff)
Set the regular spice port only once, and then only if it
is not disabled. This fixes a bug where Xspice had to listen on two ports, even in an SSL only configuration.
-rw-r--r--examples/spiceqxl.xorg.conf.example1
-rw-r--r--src/spiceqxl_spice_server.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/examples/spiceqxl.xorg.conf.example b/examples/spiceqxl.xorg.conf.example
index 04fc437..ec6321e 100644
--- a/examples/spiceqxl.xorg.conf.example
+++ b/examples/spiceqxl.xorg.conf.example
@@ -4,6 +4,7 @@ Section "Device"
# Enable regular port. Either this or SpiceTlsPort, or one of XSPICE_PORT or
# XSPICE_TLS_PORT environment variables must be specified
+ # Specify 0 to disable the use of the regular port
# default: 5900
#Option "SpicePort" "5900"
diff --git a/src/spiceqxl_spice_server.c b/src/spiceqxl_spice_server.c
index 26e7487..b2b31ff 100644
--- a/src/spiceqxl_spice_server.c
+++ b/src/spiceqxl_spice_server.c
@@ -187,7 +187,6 @@ void xspice_set_spice_server_options(OptionInfoPtr options)
exit(1);
}
printf("xspice: port = %d, tls_port = %d\n", port, tls_port);
- spice_server_set_port(spice_server, port);
if (disable_ticketing) {
spice_server_set_noauth(spice_server);
}