Update webui_with_vnc.py
Browse files- webui_with_vnc.py +2 -1
webui_with_vnc.py
CHANGED
|
@@ -36,7 +36,8 @@ def get_vnc_iframe():
|
|
| 36 |
ip = socket.gethostbyname(hostname)
|
| 37 |
hostname = subprocess.check_output("hostname", shell=True).decode().strip()
|
| 38 |
# build iframe URL
|
| 39 |
-
|
|
|
|
| 40 |
print("############## URL :",url)
|
| 41 |
# return HTML iframe
|
| 42 |
return f"""
|
|
|
|
| 36 |
ip = socket.gethostbyname(hostname)
|
| 37 |
hostname = subprocess.check_output("hostname", shell=True).decode().strip()
|
| 38 |
# build iframe URL
|
| 39 |
+
url_old = f"http://{hostname}:6080/vnc.html?host={hostname}&port=6080"
|
| 40 |
+
url=f"/usr/share/novnc/vnc.html?host={hostname}&port=6080"
|
| 41 |
print("############## URL :",url)
|
| 42 |
# return HTML iframe
|
| 43 |
return f"""
|