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

Add support for tunnel

This commit is contained in:
Marek Kraus
2024-09-23 20:41:26 +02:00
parent 62aa6c4b5a
commit 697f53e5cd
3 changed files with 122 additions and 1 deletions

View File

@@ -18,7 +18,8 @@ const path = require('path');
const net = require('net');
const client = new net.Socket();
const crypto = require('crypto');
const { SerialPort } = require('serialport')
const { SerialPort } = require('serialport');
const tunnel = require('./tunnel')
// File imports
const helpers = require('./helpers');
@@ -110,6 +111,7 @@ app.use(bodyParser.json());
connectToXdrd();
connectToSerial();
tunnel.connect();
// Check for working IPv6
function checkIPv6Support(callback) {