chore: minor refactoring

This commit is contained in:
Bill Church 2024-07-11 21:14:35 +00:00
parent ff978703da
commit 50f1769fd5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ const server = http.createServer()
const io = socketIo(server, { const io = socketIo(server, {
path: '/ssh/socket.io', path: '/ssh/socket.io',
cors: { cors: {
origin: 'http://localhost:8080', origin: config.origin || ["*.*"],
methods: ['GET', 'POST'], methods: ['GET', 'POST'],
credentials: true credentials: true
} }

View file

@ -5,7 +5,7 @@
".gitignore" ".gitignore"
], ],
"bin": "./index.js", "bin": "./index.js",
"description": "A Websocket to SSH2 gateway using term.js, socket.io, ssh2, and express", "description": "A Websocket to SSH2 gateway using xterm.js, socket.io, ssh2",
"homepage": "https://github.com/billchurch/WebSSH2", "homepage": "https://github.com/billchurch/WebSSH2",
"keywords": [ "keywords": [
"ssh", "ssh",