localhost instead of 127.0.0.1 makes ipv6 life easier

This commit is contained in:
Wolfgang Bumiller 2015-05-26 16:08:53 +02:00 committed by Dietmar Maurer
parent 2fbd27eabc
commit fd1f36ac6f

View File

@ -3024,7 +3024,7 @@ sub config_to_command {
my $pfamily = PVE::Tools::get_host_address_family($nodename); my $pfamily = PVE::Tools::get_host_address_family($nodename);
$spice_port = PVE::Tools::next_spice_port($pfamily); $spice_port = PVE::Tools::next_spice_port($pfamily);
push @$devices, '-spice', "tls-port=${spice_port},addr=127.0.0.1,tls-ciphers=DES-CBC3-SHA,seamless-migration=on"; push @$devices, '-spice', "tls-port=${spice_port},addr=localhost,tls-ciphers=DES-CBC3-SHA,seamless-migration=on";
push @$devices, '-device', "virtio-serial,id=spice$pciaddr"; push @$devices, '-device', "virtio-serial,id=spice$pciaddr";
push @$devices, '-chardev', "spicevmc,id=vdagent,name=vdagent"; push @$devices, '-chardev', "spicevmc,id=vdagent,name=vdagent";