*Remove ssl support for now
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Derrick Hammer 2022-12-18 15:11:18 -05:00
parent b7fc6834eb
commit ce5d66095f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 10 deletions

View File

@ -15,7 +15,6 @@ import log from "loglevel";
import { AddressInfo } from "net"; import { AddressInfo } from "net";
// @ts-ignore // @ts-ignore
import promiseRetry from "promise-retry"; import promiseRetry from "promise-retry";
import { getSslContext } from "./ssl.js";
export async function start() { export async function start() {
const relayPort = config.uint("port"); const relayPort = config.uint("port");
@ -43,15 +42,7 @@ export async function start() {
let relayServer: https.Server | http.Server; let relayServer: https.Server | http.Server;
if (config.bool("ssl")) { relayServer = http.createServer();
relayServer = https.createServer({
SNICallback(servername, cb) {
cb(null, getSslContext());
},
});
} else {
relayServer = http.createServer();
}
let wsServer = new WS.Server({ server: relayServer }); let wsServer = new WS.Server({ server: relayServer });