forked from shaytan/rdgen
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6d6165c4b | ||
|
|
b133ba0d66 | ||
|
|
47da6243dd | ||
|
|
661f39543c | ||
|
|
f72d9be70c | ||
|
|
88dca7235b | ||
|
|
05906539d7 | ||
|
|
851d8e9771 | ||
|
|
e4420c24c8 | ||
|
|
fae826ef53 | ||
|
|
5052bec676 |
62
.github/patches/allowCustom.py
vendored
Normal file
62
.github/patches/allowCustom.py
vendored
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
def remove_line_block(filepath, start_phrase, lines_to_remove_after_start):
|
||||||
|
"""
|
||||||
|
Removes a starting line and a fixed number of lines immediately following it.
|
||||||
|
|
||||||
|
:param filepath: The path to the file to modify.
|
||||||
|
:param start_phrase: The unique string to identify the first line of the block.
|
||||||
|
:param lines_to_remove_after_start: The number of lines to remove after the starting line.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# 1. Configuration for the removal logic
|
||||||
|
# The starting line is: const KEY: &str = "5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=";
|
||||||
|
# The block contains this line plus 8 following lines, so we want to skip 9 lines in total.
|
||||||
|
total_lines_to_skip = 1 + lines_to_remove_after_start # 1 (start line) + 8 (following lines) = 9
|
||||||
|
|
||||||
|
lines_to_keep = []
|
||||||
|
skip_count = 0
|
||||||
|
|
||||||
|
# 2. Read and filter the file content
|
||||||
|
try:
|
||||||
|
with open(filepath, 'r') as file:
|
||||||
|
for line in file:
|
||||||
|
|
||||||
|
# If we are currently in the process of skipping lines, decrement the counter and continue
|
||||||
|
if skip_count > 0:
|
||||||
|
skip_count -= 1
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Check if the line matches the start phrase (we use .strip() to ignore indentation/whitespace)
|
||||||
|
if line.strip().startswith(start_phrase.strip()):
|
||||||
|
# Start skipping the block (including the current line)
|
||||||
|
skip_count = total_lines_to_skip - 1
|
||||||
|
# Note: We subtract 1 because the 'continue' will handle the first line removal immediately
|
||||||
|
continue
|
||||||
|
|
||||||
|
# If we are not skipping, keep the line
|
||||||
|
lines_to_keep.append(line)
|
||||||
|
|
||||||
|
except FileNotFoundError:
|
||||||
|
print(f"Error: File not found at {filepath}")
|
||||||
|
return
|
||||||
|
|
||||||
|
# 3. Write the remaining lines back to the file (with backup)
|
||||||
|
try:
|
||||||
|
with open(filepath, 'w') as file:
|
||||||
|
file.writelines(lines_to_keep)
|
||||||
|
|
||||||
|
print(f"Success! Removed the 9-line block starting with '{start_phrase.strip()}' from {filepath}.")
|
||||||
|
|
||||||
|
except IOError as e:
|
||||||
|
print(f"An error occurred while writing to the file: {e}")
|
||||||
|
|
||||||
|
def main():
|
||||||
|
file_path = 'src/common.rs'
|
||||||
|
start_phrase = 'const KEY: &str = "5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=";'
|
||||||
|
lines_to_remove_after_start = 8
|
||||||
|
remove_line_block(file_path, start_phrase, lines_to_remove_after_start)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
16
.github/patches/cycle_monitor.diff
vendored
16
.github/patches/cycle_monitor.diff
vendored
@@ -1,8 +1,8 @@
|
|||||||
diff --git a/flutter/lib/desktop/widgets/remote_toolbar.dart b/flutter/lib/desktop/widgets/remote_toolbar.dart
|
diff --git a/flutter/lib/desktop/widgets/remote_toolbar.dart b/flutter/lib/desktop/widgets/remote_toolbar.dart
|
||||||
index 839ea1a81..9cee52263 100644
|
index bc3757f1e..ba6509802 100644
|
||||||
--- a/flutter/lib/desktop/widgets/remote_toolbar.dart
|
--- a/flutter/lib/desktop/widgets/remote_toolbar.dart
|
||||||
+++ b/flutter/lib/desktop/widgets/remote_toolbar.dart
|
+++ b/flutter/lib/desktop/widgets/remote_toolbar.dart
|
||||||
@@ -437,6 +437,7 @@ class _RemoteToolbarState extends State<RemoteToolbar> {
|
@@ -317,6 +317,7 @@ class _RemoteToolbarState extends State<RemoteToolbar> {
|
||||||
borderRadius: borderRadius,
|
borderRadius: borderRadius,
|
||||||
child: _DraggableShowHide(
|
child: _DraggableShowHide(
|
||||||
id: widget.id,
|
id: widget.id,
|
||||||
@@ -10,7 +10,7 @@ index 839ea1a81..9cee52263 100644
|
|||||||
sessionId: widget.ffi.sessionId,
|
sessionId: widget.ffi.sessionId,
|
||||||
dragging: _dragging,
|
dragging: _dragging,
|
||||||
fractionX: _fractionX,
|
fractionX: _fractionX,
|
||||||
@@ -2234,6 +2235,7 @@ class RdoMenuButton<T> extends StatelessWidget {
|
@@ -2460,6 +2461,7 @@ class RdoMenuButton<T> extends StatelessWidget {
|
||||||
|
|
||||||
class _DraggableShowHide extends StatefulWidget {
|
class _DraggableShowHide extends StatefulWidget {
|
||||||
final String id;
|
final String id;
|
||||||
@@ -18,7 +18,7 @@ index 839ea1a81..9cee52263 100644
|
|||||||
final SessionID sessionId;
|
final SessionID sessionId;
|
||||||
final RxDouble fractionX;
|
final RxDouble fractionX;
|
||||||
final RxBool dragging;
|
final RxBool dragging;
|
||||||
@@ -2246,6 +2248,7 @@ class _DraggableShowHide extends StatefulWidget {
|
@@ -2472,6 +2474,7 @@ class _DraggableShowHide extends StatefulWidget {
|
||||||
const _DraggableShowHide({
|
const _DraggableShowHide({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.id,
|
required this.id,
|
||||||
@@ -26,7 +26,7 @@ index 839ea1a81..9cee52263 100644
|
|||||||
required this.sessionId,
|
required this.sessionId,
|
||||||
required this.fractionX,
|
required this.fractionX,
|
||||||
required this.dragging,
|
required this.dragging,
|
||||||
@@ -2357,6 +2360,7 @@ class _DraggableShowHideState extends State<_DraggableShowHide> {
|
@@ -2583,6 +2586,7 @@ class _DraggableShowHideState extends State<_DraggableShowHide> {
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
_buildDraggable(context),
|
_buildDraggable(context),
|
||||||
@@ -34,9 +34,9 @@ index 839ea1a81..9cee52263 100644
|
|||||||
Obx(() => buttonWrapper(
|
Obx(() => buttonWrapper(
|
||||||
() {
|
() {
|
||||||
widget.setFullscreen(!isFullscreen.value);
|
widget.setFullscreen(!isFullscreen.value);
|
||||||
@@ -2463,3 +2467,50 @@ Widget _buildPointerTrackWidget(Widget child, FFI? ffi) {
|
@@ -2742,3 +2746,50 @@ class EdgeThicknessControl extends StatelessWidget {
|
||||||
),
|
return slider;
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
+class _CycleMonitorMenu extends StatelessWidget {
|
+class _CycleMonitorMenu extends StatelessWidget {
|
||||||
|
|||||||
2
.github/workflows/generator-android.yml
vendored
2
.github/workflows/generator-android.yml
vendored
@@ -494,6 +494,8 @@ jobs:
|
|||||||
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
|
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
|
||||||
run: |
|
run: |
|
||||||
export PATH=/usr/lib/jvm/java-17-openjdk-amd64/bin:$PATH
|
export PATH=/usr/lib/jvm/java-17-openjdk-amd64/bin:$PATH
|
||||||
|
# Increase Gradle JVM memory for CI builds
|
||||||
|
sed -i "s/org.gradle.jvmargs=-Xmx1024M/org.gradle.jvmargs=-Xmx2g/g" ./flutter/android/gradle.properties
|
||||||
# temporary use debug sign config
|
# temporary use debug sign config
|
||||||
sed -i "s/signingConfigs.release/signingConfigs.debug/g" ./flutter/android/app/build.gradle
|
sed -i "s/signingConfigs.release/signingConfigs.debug/g" ./flutter/android/app/build.gradle
|
||||||
case ${{ matrix.job.target }} in
|
case ${{ matrix.job.target }} in
|
||||||
|
|||||||
3
.github/workflows/generator-linux.yml
vendored
3
.github/workflows/generator-linux.yml
vendored
@@ -429,7 +429,8 @@ jobs:
|
|||||||
rpm \
|
rpm \
|
||||||
unzip \
|
unzip \
|
||||||
wget \
|
wget \
|
||||||
xz-utils
|
xz-utils \
|
||||||
|
libssl-dev
|
||||||
# we have libopus compiled by us.
|
# we have libopus compiled by us.
|
||||||
apt-get remove -y libopus-dev || true
|
apt-get remove -y libopus-dev || true
|
||||||
# output devs
|
# output devs
|
||||||
|
|||||||
72
.github/workflows/generator-windows.yml
vendored
72
.github/workflows/generator-windows.yml
vendored
@@ -229,7 +229,6 @@ jobs:
|
|||||||
sed -i -e 's|Purslane Ltd|${{ fromJson(inputs.extras).compname }}|' ./flutter/windows/runner/Runner.rc
|
sed -i -e 's|Purslane Ltd|${{ fromJson(inputs.extras).compname }}|' ./flutter/windows/runner/Runner.rc
|
||||||
sed -i -e 's|Purslane Ltd|${{ fromJson(inputs.extras).compname }}|' ./Cargo.toml
|
sed -i -e 's|Purslane Ltd|${{ fromJson(inputs.extras).compname }}|' ./Cargo.toml
|
||||||
sed -i -e 's|Purslane Ltd|${{ fromJson(inputs.extras).compname }}|' ./libs/portable/Cargo.toml
|
sed -i -e 's|Purslane Ltd|${{ fromJson(inputs.extras).compname }}|' ./libs/portable/Cargo.toml
|
||||||
sed -i -e 's|Purslane Ltd.|${{ fromJson(inputs.extras).compname }}|' ./res/setup.nsi
|
|
||||||
|
|
||||||
- name: change url to custom
|
- name: change url to custom
|
||||||
if: fromJson(inputs.extras).urlLink != 'https://rustdesk.com'
|
if: fromJson(inputs.extras).urlLink != 'https://rustdesk.com'
|
||||||
@@ -243,7 +242,6 @@ jobs:
|
|||||||
sed -i -e "s|const url = 'https://rustdesk.com/';|const url = '${{ fromJson(inputs.extras).urlLink }}';|" ./flutter/lib/mobile/pages/settings_page.dart
|
sed -i -e "s|const url = 'https://rustdesk.com/';|const url = '${{ fromJson(inputs.extras).urlLink }}';|" ./flutter/lib/mobile/pages/settings_page.dart
|
||||||
sed -i -e "s|launchUrlString('https://rustdesk.com/privacy.html')|launchUrlString('${{ fromJson(inputs.extras).urlLink }}/privacy.html')|" ./flutter/lib/mobile/pages/settings_page.dart
|
sed -i -e "s|launchUrlString('https://rustdesk.com/privacy.html')|launchUrlString('${{ fromJson(inputs.extras).urlLink }}/privacy.html')|" ./flutter/lib/mobile/pages/settings_page.dart
|
||||||
sed -i -e "s|https://rustdesk.com/privacy.html|${{ fromJson(inputs.extras).urlLink }}/privacy.html|" ./flutter/lib/desktop/pages/install_page.dart
|
sed -i -e "s|https://rustdesk.com/privacy.html|${{ fromJson(inputs.extras).urlLink }}/privacy.html|" ./flutter/lib/desktop/pages/install_page.dart
|
||||||
#sed -i -e "s|https://rustdesk.com/|${{fromJson(inputs.extras).urlLink }}|" ./res/setup.nsi
|
|
||||||
|
|
||||||
- name: change download link to custom
|
- name: change download link to custom
|
||||||
if: fromJson(inputs.extras).downloadLink != 'https://rustdesk.com/download'
|
if: fromJson(inputs.extras).downloadLink != 'https://rustdesk.com/download'
|
||||||
@@ -267,8 +265,8 @@ jobs:
|
|||||||
- name: allow custom.txt
|
- name: allow custom.txt
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/allowCustom.diff -OutFile allowCustom.diff
|
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/allowCustom.py -OutFile allowCustom.py
|
||||||
git apply allowCustom.diff
|
python allowCustom.py
|
||||||
# Remove Setup Server Tip
|
# Remove Setup Server Tip
|
||||||
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeSetupServerTip.diff -OutFile removeSetupServerTip.diff
|
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeSetupServerTip.diff -OutFile removeSetupServerTip.diff
|
||||||
git apply removeSetupServerTip.diff
|
git apply removeSetupServerTip.diff
|
||||||
@@ -430,15 +428,15 @@ jobs:
|
|||||||
sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart
|
sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart
|
||||||
sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs
|
sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs
|
||||||
|
|
||||||
- name: run as admin
|
# - name: run as admin
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
if: ${{ fromJson(inputs.extras).runasadmin == 'true' }}
|
# if: ${{ fromJson(inputs.extras).runasadmin == 'true' }}
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
sed -i '/<\/compatibility>/a \
|
# sed -i '/<\/compatibility>/a \
|
||||||
<security> \
|
# <security> \
|
||||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> \
|
# <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> \
|
||||||
</security>' ./flutter/windows/runner/runner.exe.manifest
|
# </security>' ./flutter/windows/runner/runner.exe.manifest
|
||||||
|
|
||||||
- name: Report Status
|
- name: Report Status
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
@@ -482,31 +480,31 @@ jobs:
|
|||||||
mv -Force .\usbmmidd_v2 ./rustdesk
|
mv -Force .\usbmmidd_v2 ./rustdesk
|
||||||
|
|
||||||
# Download printer driver files and extract them to ./rustdesk
|
# Download printer driver files and extract them to ./rustdesk
|
||||||
try {
|
# try {
|
||||||
Invoke-WebRequest -Uri https://github.com/rustdesk/hbb_common/releases/download/driver/rustdesk_printer_driver_v4-1.4.zip -OutFile rustdesk_printer_driver_v4-1.4.zip
|
# Invoke-WebRequest -Uri https://github.com/rustdesk/hbb_common/releases/download/driver/rustdesk_printer_driver_v4-1.4.zip -OutFile rustdesk_printer_driver_v4-1.4.zip
|
||||||
Invoke-WebRequest -Uri https://github.com/rustdesk/hbb_common/releases/download/driver/printer_driver_adapter.zip -OutFile printer_driver_adapter.zip
|
# Invoke-WebRequest -Uri https://github.com/rustdesk/hbb_common/releases/download/driver/printer_driver_adapter.zip -OutFile printer_driver_adapter.zip
|
||||||
Invoke-WebRequest -Uri https://github.com/rustdesk/hbb_common/releases/download/driver/sha256sums -OutFile sha256sums
|
# Invoke-WebRequest -Uri https://github.com/rustdesk/hbb_common/releases/download/driver/sha256sums -OutFile sha256sums
|
||||||
|
|
||||||
# Check and move the files
|
# # Check and move the files
|
||||||
$checksum_driver = (Select-String -Path .\sha256sums -Pattern '^([a-fA-F0-9]{64}) \*rustdesk_printer_driver_v4-1.4\.zip$').Matches.Groups[1].Value
|
# $checksum_driver = (Select-String -Path .\sha256sums -Pattern '^([a-fA-F0-9]{64}) \*rustdesk_printer_driver_v4-1.4\.zip$').Matches.Groups[1].Value
|
||||||
$downloadsum_driver = Get-FileHash -Path rustdesk_printer_driver_v4-1.4.zip -Algorithm SHA256
|
# $downloadsum_driver = Get-FileHash -Path rustdesk_printer_driver_v4-1.4.zip -Algorithm SHA256
|
||||||
$checksum_adapter = (Select-String -Path .\sha256sums -Pattern '^([a-fA-F0-9]{64}) \*printer_driver_adapter\.zip$').Matches.Groups[1].Value
|
# $checksum_adapter = (Select-String -Path .\sha256sums -Pattern '^([a-fA-F0-9]{64}) \*printer_driver_adapter\.zip$').Matches.Groups[1].Value
|
||||||
$downloadsum_adapter = Get-FileHash -Path printer_driver_adapter.zip -Algorithm SHA256
|
# $downloadsum_adapter = Get-FileHash -Path printer_driver_adapter.zip -Algorithm SHA256
|
||||||
if ($checksum_driver -eq $downloadsum_driver.Hash -and $checksum_adapter -eq $downloadsum_adapter.Hash) {
|
# if ($checksum_driver -eq $downloadsum_driver.Hash -and $checksum_adapter -eq $downloadsum_adapter.Hash) {
|
||||||
Write-Output "rustdesk_printer_driver_v4-1.4, checksums match, extract the file."
|
# Write-Output "rustdesk_printer_driver_v4-1.4, checksums match, extract the file."
|
||||||
Expand-Archive rustdesk_printer_driver_v4-1.4.zip -DestinationPath .
|
# Expand-Archive rustdesk_printer_driver_v4-1.4.zip -DestinationPath .
|
||||||
mkdir ./rustdesk/drivers
|
# mkdir ./rustdesk/drivers
|
||||||
mv -Force .\rustdesk_printer_driver_v4-1.4 ./rustdesk/drivers/RustDeskPrinterDriver
|
# mv -Force .\rustdesk_printer_driver_v4-1.4 ./rustdesk/drivers/RustDeskPrinterDriver
|
||||||
Expand-Archive printer_driver_adapter.zip -DestinationPath .
|
# Expand-Archive printer_driver_adapter.zip -DestinationPath .
|
||||||
mv -Force .\printer_driver_adapter.dll ./rustdesk
|
# mv -Force .\printer_driver_adapter.dll ./rustdesk
|
||||||
} elseif ($checksum_driver -ne $downloadsum_driver.Hash) {
|
# } elseif ($checksum_driver -ne $downloadsum_driver.Hash) {
|
||||||
Write-Output "rustdesk_printer_driver_v4-1.4, checksums do not match, ignore the file."
|
# Write-Output "rustdesk_printer_driver_v4-1.4, checksums do not match, ignore the file."
|
||||||
} else {
|
# } else {
|
||||||
Write-Output "printer_driver_adapter.dll, checksums do not match, ignore the file."
|
# Write-Output "printer_driver_adapter.dll, checksums do not match, ignore the file."
|
||||||
}
|
# }
|
||||||
} catch {
|
# } catch {
|
||||||
Write-Host "Ingore the printer driver error."
|
# Write-Host "Ingore the printer driver error."
|
||||||
}
|
# }
|
||||||
|
|
||||||
- name: icon stuff
|
- name: icon stuff
|
||||||
if: ${{ inputs.iconlink != 'false' }}
|
if: ${{ inputs.iconlink != 'false' }}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from PIL import Image
|
|||||||
class GenerateForm(forms.Form):
|
class GenerateForm(forms.Form):
|
||||||
#Platform
|
#Platform
|
||||||
platform = forms.ChoiceField(choices=[('windows','Windows 64Bit'),('windows-x86','Windows 32Bit'),('linux','Linux'),('android','Android'),('macos','macOS')], initial='windows')
|
platform = forms.ChoiceField(choices=[('windows','Windows 64Bit'),('windows-x86','Windows 32Bit'),('linux','Linux'),('android','Android'),('macos','macOS')], initial='windows')
|
||||||
version = forms.ChoiceField(choices=[('master','nightly'),('1.4.3','1.4.3'),('1.4.2','1.4.2'),('1.4.1','1.4.1'),('1.4.0','1.4.0'),('1.3.9','1.3.9'),('1.3.8','1.3.8'),('1.3.7','1.3.7'),('1.3.6','1.3.6'),('1.3.5','1.3.5'),('1.3.4','1.3.4'),('1.3.3','1.3.3')], initial='1.4.3')
|
version = forms.ChoiceField(choices=[('master','nightly'),('1.4.4','1.4.4'),('1.4.3','1.4.3'),('1.4.2','1.4.2'),('1.4.1','1.4.1'),('1.4.0','1.4.0'),('1.3.9','1.3.9'),('1.3.8','1.3.8'),('1.3.7','1.3.7'),('1.3.6','1.3.6'),('1.3.5','1.3.5'),('1.3.4','1.3.4'),('1.3.3','1.3.3')], initial='1.4.4')
|
||||||
help_text="'master' is the development version (nightly build) with the latest features but may be less stable"
|
help_text="'master' is the development version (nightly build) with the latest features but may be less stable"
|
||||||
delayFix = forms.BooleanField(initial=True, required=False)
|
delayFix = forms.BooleanField(initial=True, required=False)
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ class GenerateForm(forms.Form):
|
|||||||
#Security
|
#Security
|
||||||
passApproveMode = forms.ChoiceField(choices=[('password','Accept sessions via password'),('click','Accept sessions via click'),('password-click','Accepts sessions via both')],initial='password-click')
|
passApproveMode = forms.ChoiceField(choices=[('password','Accept sessions via password'),('click','Accept sessions via click'),('password-click','Accepts sessions via both')],initial='password-click')
|
||||||
permanentPassword = forms.CharField(widget=forms.PasswordInput(), required=False)
|
permanentPassword = forms.CharField(widget=forms.PasswordInput(), required=False)
|
||||||
runasadmin = forms.ChoiceField(choices=[('false','No'),('true','Yes')], initial='false')
|
#runasadmin = forms.ChoiceField(choices=[('false','No'),('true','Yes')], initial='false')
|
||||||
denyLan = forms.BooleanField(initial=False, required=False)
|
denyLan = forms.BooleanField(initial=False, required=False)
|
||||||
enableDirectIP = forms.BooleanField(initial=False, required=False)
|
enableDirectIP = forms.BooleanField(initial=False, required=False)
|
||||||
#ipWhitelist = forms.BooleanField(initial=False, required=False)
|
#ipWhitelist = forms.BooleanField(initial=False, required=False)
|
||||||
|
|||||||
@@ -308,8 +308,6 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2><i class="fas fa-shield-alt"></i> Security</h2>
|
<h2><i class="fas fa-shield-alt"></i> Security</h2>
|
||||||
<label for="{{ form.runasadmin.id_for_label }}">Always run as Administrator?</label>
|
|
||||||
{{ form.runasadmin }}<br><br>
|
|
||||||
<label for="{{ form.passApproveMode.id_for_label }}">Password Approve mode:</label>
|
<label for="{{ form.passApproveMode.id_for_label }}">Password Approve mode:</label>
|
||||||
{{ form.passApproveMode }}<br><br>
|
{{ form.passApproveMode }}<br><br>
|
||||||
<div id="passwordRequirement" class="password-requirement">To use the hide connection window feature, please set a permanent password.</div>
|
<div id="passwordRequirement" class="password-requirement">To use the hide connection window feature, please set a permanent password.</div>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ def generator_view(request):
|
|||||||
permPass = form.cleaned_data['permanentPassword']
|
permPass = form.cleaned_data['permanentPassword']
|
||||||
theme = form.cleaned_data['theme']
|
theme = form.cleaned_data['theme']
|
||||||
themeDorO = form.cleaned_data['themeDorO']
|
themeDorO = form.cleaned_data['themeDorO']
|
||||||
runasadmin = form.cleaned_data['runasadmin']
|
#runasadmin = form.cleaned_data['runasadmin']
|
||||||
passApproveMode = form.cleaned_data['passApproveMode']
|
passApproveMode = form.cleaned_data['passApproveMode']
|
||||||
denyLan = form.cleaned_data['denyLan']
|
denyLan = form.cleaned_data['denyLan']
|
||||||
enableDirectIP = form.cleaned_data['enableDirectIP']
|
enableDirectIP = form.cleaned_data['enableDirectIP']
|
||||||
@@ -190,7 +190,7 @@ def generator_view(request):
|
|||||||
#github limits inputs to 10, so lump extras into one with json
|
#github limits inputs to 10, so lump extras into one with json
|
||||||
extras = {}
|
extras = {}
|
||||||
extras['genurl'] = _settings.GENURL
|
extras['genurl'] = _settings.GENURL
|
||||||
extras['runasadmin'] = runasadmin
|
#extras['runasadmin'] = runasadmin
|
||||||
extras['urlLink'] = urlLink
|
extras['urlLink'] = urlLink
|
||||||
extras['downloadLink'] = downloadLink
|
extras['downloadLink'] = downloadLink
|
||||||
extras['delayFix'] = 'true' if delayFix else 'false'
|
extras['delayFix'] = 'true' if delayFix else 'false'
|
||||||
|
|||||||
Reference in New Issue
Block a user