Francois Gouget : testbot: Improve the $VM::GetHost() documentation.

Alexandre Julliard julliard at winehq.org
Fri Nov 24 10:32:03 CST 2017


Module: tools
Branch: master
Commit: 011f01d4a353c8779fc83432a3452660d8b7b922
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=011f01d4a353c8779fc83432a3452660d8b7b922

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Nov 24 10:00:04 2017 +0100

testbot: Improve the $VM::GetHost() documentation.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/WineTestBot/VMs.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/VMs.pm b/testbot/lib/WineTestBot/VMs.pm
index 7bd6d64..b931342 100644
--- a/testbot/lib/WineTestBot/VMs.pm
+++ b/testbot/lib/WineTestBot/VMs.pm
@@ -179,7 +179,9 @@ sub GetHost($)
 {
   my ($self) = @_;
 
-  # The URI is of the form protocol://user@hostname/hypervisor-specific-data
+  # VirtURI is of the form proto://user@hostname:port/hypervisor-specific-data
+  # This returns the 'hostname:port' part. Note that the port can be used to
+  # tunnel connections to different VM hosts and thus must be included.
   return $1 if ($self->VirtURI =~ m%^[^:]+://(?:[^/@]*@)?([^/]+)/%);
   return "localhost";
 }




More information about the wine-cvs mailing list