Skip to content

Commit c04948e

Browse files
committed
Oops fixed ip issue
1 parent 96d6a4a commit c04948e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/components/ObsSwitcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function (_EventEmitter) {
187187
switch (_context2.prev = _context2.next) {
188188
case 0:
189189
if (!this.nginxSettings) {
190-
rtmp = /rtmp:\/\/(\w+)\/(\w+)\/(\w+)/g.exec(_config.default.nginx.rtmp);
190+
rtmp = /rtmp:\/\/(.*)\/(\w+)\/(\w+)/g.exec(_config.default.nginx.rtmp);
191191
this.nginxSettings = {
192192
ip: rtmp[1],
193193
application: rtmp[2],

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nginx-obs-automatic-low-bitrate-switching",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Simple app to automatically switch scenes based on the current bitrate on the nginx stats page.",
55
"main": "lib/app",
66
"scripts": {

src/components/ObsSwitcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class ObsSwitcher extends EventEmitter {
113113

114114
async getBitrate() {
115115
if (!this.nginxSettings) {
116-
const rtmp = /rtmp:\/\/(\w+)\/(\w+)\/(\w+)/g.exec(config.nginx.rtmp);
116+
const rtmp = /rtmp:\/\/(.*)\/(\w+)\/(\w+)/g.exec(config.nginx.rtmp);
117117
this.nginxSettings = {
118118
ip: rtmp[1],
119119
application: rtmp[2],

0 commit comments

Comments
 (0)