diff --git a/app/src/server.js b/app/src/server.js index 2c802a26..acb5a141 100755 --- a/app/src/server.js +++ b/app/src/server.js @@ -39,7 +39,7 @@ dependencies: { * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.2.87 + * @version 1.2.88 * */ @@ -596,11 +596,8 @@ async function ngrokStart() { await ngrok.authtoken(ngrokAuthToken); await ngrok.connect(port); const api = ngrok.getApi(); - //const data = JSON.parse(await api.get('api/tunnels')); // v3 - const data = await api.listTunnels(); // v4 - const pu0 = data.tunnels[0].public_url; - const pu1 = data.tunnels[1].public_url; - const tunnelHttps = pu0.startsWith('https') ? pu0 : pu1; + const list = await api.listTunnels(); + const tunnel = list.tunnels[0].public_url; // server settings log.info('settings', { iceServers: iceServers, @@ -614,7 +611,7 @@ async function ngrokStart() { ngrok_token: ngrokAuthToken, }, server: host, - server_tunnel: tunnelHttps, + server_tunnel: tunnel, test_ice_servers: testStunTurn, api_docs: api_docs, api_key_secret: api_key_secret, diff --git a/package.json b/package.json index fe1fccc3..30b6ef00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalk", - "version": "1.2.87", + "version": "1.2.88", "description": "A free WebRTC browser-based video call", "main": "server.js", "scripts": { @@ -37,19 +37,19 @@ "license": "AGPL-3.0", "homepage": "https://github.com/miroslavpejic85/mirotalk", "dependencies": { - "@sentry/integrations": "^7.100.1", - "@sentry/node": "^7.100.1", + "@sentry/integrations": "^7.101.1", + "@sentry/node": "^7.101.1", "axios": "^1.6.7", "body-parser": "^1.20.2", "colors": "^1.4.0", "compression": "^1.7.4", "cors": "^2.8.5", "crypto-js": "^4.2.0", - "dotenv": "^16.4.2", + "dotenv": "^16.4.4", "express": "^4.18.2", "jsonwebtoken": "^9.0.2", - "ngrok": "^4.3.3", - "openai": "^4.27.0", + "ngrok": "^5.0.0-beta.2", + "openai": "^4.28.0", "qs": "^6.11.2", "socket.io": "^4.7.4", "swagger-ui-express": "^5.0.0", diff --git a/public/js/client.js b/public/js/client.js index 230836d7..eef46550 100644 --- a/public/js/client.js +++ b/public/js/client.js @@ -15,7 +15,7 @@ * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.2.87 + * @version 1.2.88 * */