Commit c350406e authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Do not add the ssh route if using a routable control IP for the VM.

parent 43359b07
......@@ -604,9 +604,10 @@ if (safeLibOp('vnodeConfigDevices', 1, 1)) {
}
#
# Route to inner sshd
# Route to inner ssh, but not if the IP is routable, no need to.
#
if (defined(VNCONFIG('SSHDPORT')) && VNCONFIG('SSHDPORT') ne "") {
if (defined(VNCONFIG('SSHDPORT')) && VNCONFIG('SSHDPORT') ne "" &&
!isRoutable(VNCONFIG('CTRLIP'))) {
my $sshdport = VNCONFIG('SSHDPORT');
my $ctrlip = VNCONFIG('CTRLIP');
......
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