Commit f73ca7e4 authored by Jeremy White's avatar Jeremy White

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.
parent 3475eb2c
......@@ -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"
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment