mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(server) prefix + /socket -> path.join(prefix, /socket)
This commit is contained in:
parent
7badb3eea0
commit
2e9910ddd3
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
var DIR_LIB = './',
|
||||
DIR_SERVER = DIR_LIB + 'server/',
|
||||
|
||||
path = require('path'),
|
||||
http = require('http'),
|
||||
|
||||
cloudcmd = require(DIR_LIB + 'cloudcmd'),
|
||||
|
|
@ -39,7 +40,7 @@
|
|||
app.use(cloudcmd({
|
||||
config: options,
|
||||
socket: io(server, {
|
||||
path: config('prefix') + '/socket.io'
|
||||
path: path.join('/', config('prefix'), 'socket.io')
|
||||
})
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue