binary1ne commited on
Commit
f032383
·
verified ·
1 Parent(s): a400047

Update webui_with_vnc.py

Browse files
Files changed (1) hide show
  1. 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
- url = f"http://{hostname}:6080/vnc.html?host={hostname}&port=6080"
 
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"""