[pve-devel] [PATCH] spiceproxy : forbid port 65535
Alexandre Derumier
aderumier at odiso.com
Mon Jul 22 06:59:09 CEST 2013
full tls seamless migration, try to connect without tls to port 65535,and it give us a timeout.
So we need to denied it as soon as possible
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/HTTPServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm
index d3f03d7..2567b51 100755
--- a/PVE/HTTPServer.pm
+++ b/PVE/HTTPServer.pm
@@ -494,7 +494,7 @@ sub handle_spice_proxy_request {
my ($self, $reqstate, $connect_str, $vmid, $node, $spiceport) = @_;
eval {
-
+ die "Wrong port" if $spiceport == 65535;
my $remip;
if ($node ne 'localhost' && $node ne PVE::INotify::nodename()) {
--
1.7.10.4
More information about the pve-devel
mailing list