Merge pull request #125 from zhou-yg/patch-1
[bug] fix connecting problem
This commit is contained in:
commit
5fa4c2df5f
@ -20,7 +20,6 @@ const init = ({ app, server, options }) => {
|
||||
realm,
|
||||
config: {
|
||||
...config,
|
||||
path: app.mountpath
|
||||
}
|
||||
});
|
||||
|
||||
@ -89,8 +88,6 @@ function PeerServer (options = {}, callback) {
|
||||
let path = options.path;
|
||||
const port = options.port;
|
||||
|
||||
delete options.path;
|
||||
|
||||
if (path[0] !== '/') {
|
||||
path = '/' + path;
|
||||
}
|
||||
@ -109,7 +106,7 @@ function PeerServer (options = {}, callback) {
|
||||
}
|
||||
|
||||
const peerjs = ExpressPeerServer(server, options);
|
||||
app.use(path, peerjs);
|
||||
app.use(peerjs);
|
||||
|
||||
if (callback) {
|
||||
server.listen(port, () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user