From 62c2ca9be1d73ccbdcc076508f6d1bb32353fad0 Mon Sep 17 00:00:00 2001 From: Xatrekak Date: Sun, 12 Feb 2023 17:20:25 -0500 Subject: [PATCH] Added Web UI to Dialog --- scripts/welcome.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/welcome.py b/scripts/welcome.py index 612bab27..821e4f97 100644 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -143,7 +143,7 @@ class Welcome_dialog: self.update(force=True) - def get_release(): + def get_release(self): try: with open(os.path.expanduser("~/.config/GNS3/gns3_release")) as f: content = f.read() @@ -258,7 +258,17 @@ class Welcome_dialog: ip = self.get_ip() if ip: - content += "IP: {ip}\n\nTo log in using SSH:\nssh gns3@{ip}\nPassword: gns3\n\nImages and projects are located in /opt/gns3""".format(ip=ip) + content += f""" +IP: {ip} +Web UI: http://{ip}:3080 + +To log in using SSH: +ssh gns3@{ip} +Password: gns3 + +Images and projects are located in /opt/gns3 +""".strip() + else: content += "eth0 is not configured. Please manually configure it via the Networking menu."