Merge pull request #9905 from The-Loeki/patch-2

qemu vnc: hardcoded lowerbound leaves negative ports
pull/9913/head
Wilken Rivera 6 years ago committed by GitHub
commit 2da89db272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -76,9 +76,9 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error
var vnc string
if !config.VNCUsePassword {
vnc = fmt.Sprintf("%s:%d", vncIP, vncPort-5900)
vnc = fmt.Sprintf("%s:%d", vncIP, vncPort-config.VNCPortMin)
} else {
vnc = fmt.Sprintf("%s:%d,password", vncIP, vncPort-5900)
vnc = fmt.Sprintf("%s:%d,password", vncIP, vncPort-config.VNCPortMin)
}
if config.QMPEnable {

Loading…
Cancel
Save