From 07f6ff9c3c7de269d1612e557c089a2d10cb2792 Mon Sep 17 00:00:00 2001 From: piair Date: Sun, 24 Sep 2023 21:19:02 +0200 Subject: [PATCH] trying to fix that card error + fix config (merci) --- V6.py | 8 ++++++-- config/config.sh | 4 ++-- modules/config.py | 9 ++++++++- version | 2 +- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/V6.py b/V6.py index ee5134d..14b1877 100755 --- a/V6.py +++ b/V6.py @@ -823,14 +823,18 @@ def CustomStart(): driver.quit() -if g.vnc_enabled : +if g.vnc_enabled or g.dev: display = SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=g.vnc_port, color_depth=24) else : display = SmartDisplay(size=(1920, 1080)) display.start() -webhookFailure.send(f"@silent Starting on this config", username="Check de lancement", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png") +webhookFailure.send(f"Starting on this config", username="Check de lancement", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png") +if g.dev : + driver = firefox_driver() + input("kill ?") + driver.quit() if g.custom_start: CustomStart() elif g.unban: diff --git a/config/config.sh b/config/config.sh index fb2fe5c..1c316b1 100644 --- a/config/config.sh +++ b/config/config.sh @@ -35,9 +35,9 @@ server { location /novnc/websockify { proxy_pass http://127.0.0.1:6080/; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; + proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; + proxy_set_header Host \$host; } location / { diff --git a/modules/config.py b/modules/config.py index 5a847b0..e24faca 100644 --- a/modules/config.py +++ b/modules/config.py @@ -31,6 +31,13 @@ parser.add_argument( action="store_true", ) +parser.add_argument( + "-d", + "--dev", + dest="dev", + help="enable dev mode", + action="store_true", +) parser.add_argument( "-c", @@ -70,7 +77,7 @@ args = parser.parse_args() g.custom_start = args.override g.unban = args.unban g.full_log = args.fulllog - +g.dev = args.dev if g.custom_start : g.log = True diff --git a/version b/version index dfe77b4..5438f70 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.4.4 +v6.5.0