chore: minor refactoring
This commit is contained in:
parent
ff978703da
commit
50f1769fd5
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue