Skip to content

Commit

Permalink
upgrade interface for the RTSP pass through
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbendell committed Nov 16, 2020
1 parent 15ae26a commit 0b30355
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/blink-camera-deligate.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ class BlinkCameraDelegate {
const [,protocol, host, path,] = /([a-z]+):\/\/([^:\/]+)(?::[0-9]+)?(\/.*)/.exec(liveViewURL) || [];
const ports = await reservePorts({count: 1});
const listenPort = ports[0];
const proxyServer = new Http2TLSTunnel(listenPort, host);
const proxyServer = new Http2TLSTunnel(listenPort, host, "0.0.0.0", 443, protocol);
await proxyServer.start();
const rtspProxy = {
protocol, host, path, listenPort, proxyServer
}
const rtspProxy = { protocol, host, path, listenPort, proxyServer }
this.proxySessions.set(sessionId, rtspProxy);
}
if (/^immis/.test(liveViewURL)) {
Expand Down

0 comments on commit 0b30355

Please sign in to comment.