1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

hotfix for tunnel

This commit is contained in:
NoobishSVK
2024-09-26 15:46:16 +02:00
parent 431dc7cedf
commit f295f18e8f
3 changed files with 2 additions and 3 deletions

View File

@@ -79,7 +79,6 @@ function resolveDataBuffer(data, wss, rdsWss) {
function kickClient(ipAddress) { function kickClient(ipAddress) {
// Find the entry in connectedClients associated with the provided IP address // Find the entry in connectedClients associated with the provided IP address
const targetClient = storage.connectedUsers.find(client => client.ip === ipAddress); const targetClient = storage.connectedUsers.find(client => client.ip === ipAddress);
console.log(storage.connectedUsers);
if (targetClient && targetClient.instance) { if (targetClient && targetClient.instance) {
// Send a termination message to the client // Send a termination message to the client
targetClient.instance.send('KICK'); targetClient.instance.send('KICK');

View File

@@ -83,6 +83,8 @@ function submitData() {
const tunnelUsername = $('#tunnel-username').val(); const tunnelUsername = $('#tunnel-username').val();
const tunnelSubdomain = $('#tunnel-subdomain').val(); const tunnelSubdomain = $('#tunnel-subdomain').val();
const tunnelToken = $('#tunnel-token').val(); const tunnelToken = $('#tunnel-token').val();
const tunnelEnabled = $("#tunnel-enabled").is(":checked");
const tunnelLowLatency = $("#tuner-lowlatency").is(":checked");
const publicTuner = $("#tuner-public").is(":checked"); const publicTuner = $("#tuner-public").is(":checked");
const lockToAdmin = $("#tuner-lock").is(":checked"); const lockToAdmin = $("#tuner-lock").is(":checked");
@@ -331,7 +333,6 @@ function submitData() {
$("#tunnel-enable").prop("checked", !!(data.tunnel && data.tunnel?.enabled)); $("#tunnel-enable").prop("checked", !!(data.tunnel && data.tunnel?.enabled));
$("#tunnel-lowlatency").prop("checked", !!(data.tunnel && data.tunnel?.lowLatencyMode)); $("#tunnel-lowlatency").prop("checked", !!(data.tunnel && data.tunnel?.lowLatencyMode));
console.log((data.tunnel && data.tunnel?.enabled) ? data.tunnel?.enabled : "false");
$('#tunnel-token').val(data.tunnel?.token); $('#tunnel-token').val(data.tunnel?.token);
$('#tunnel-subdomain').val(data.tunnel?.subdomain); $('#tunnel-subdomain').val(data.tunnel?.subdomain);
$('#tunnel-username').val(data.tunnel?.username); $('#tunnel-username').val(data.tunnel?.username);

View File

@@ -184,7 +184,6 @@ $(document).ready(function () {
//FMLIST logging //FMLIST logging
$('#log-fmlist').on('click', function() { $('#log-fmlist').on('click', function() {
//console.log('FMLIST');
$.ajax({ $.ajax({
url: './log_fmlist', url: './log_fmlist',
method: 'GET', method: 'GET',