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, {
|
||||
path: '/ssh/socket.io',
|
||||
cors: {
|
||||
origin: 'http://localhost:8080',
|
||||
origin: config.origin || ["*.*"],
|
||||
methods: ['GET', 'POST'],
|
||||
credentials: true
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
".gitignore"
|
||||
],
|
||||
"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",
|
||||
"keywords": [
|
||||
"ssh",
|
||||
|
|
Loading…
Reference in a new issue