Revision df9cb669
b/ui/spice-core.c | ||
---|---|---|
480 | 480 |
port = qemu_opt_get_number(opts, "port", 0); |
481 | 481 |
tls_port = qemu_opt_get_number(opts, "tls-port", 0); |
482 | 482 |
if (!port && !tls_port) { |
483 |
return; |
|
483 |
fprintf(stderr, "neither port nor tls-port specified for spice."); |
|
484 |
exit(1); |
|
485 |
} |
|
486 |
if (port < 0 || port > 65535) { |
|
487 |
fprintf(stderr, "spice port is out of range"); |
|
488 |
exit(1); |
|
489 |
} |
|
490 |
if (tls_port < 0 || tls_port > 65535) { |
|
491 |
fprintf(stderr, "spice tls-port is out of range"); |
|
492 |
exit(1); |
|
484 | 493 |
} |
485 | 494 |
password = qemu_opt_get(opts, "password"); |
486 | 495 |
|
Also available in: Unified diff