aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vconsole.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vconsole.c b/vconsole.c
index 18084df..3f01887 100644
--- a/vconsole.c
+++ b/vconsole.c
@@ -794,6 +794,8 @@ main(int argc, char *argv[])
}
if (uri == NULL)
+ uri = getenv("LIBVIRT_DEFAULT_URI");
+ if (uri == NULL)
uri = getenv("VIRSH_DEFAULT_CONNECT_URI");
/* init */