@scrypted/server 0.123.59 → 0.123.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.123.59",
3
+ "version": "0.123.60",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@scrypted/ffmpeg-static": "^6.1.0-build3",
@@ -198,7 +198,7 @@ async def createREPLServer(sdk: ScryptedStatic, plugin: ScryptedDevice) -> int:
198
198
  sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
199
199
  sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
200
200
  sock.settimeout(None)
201
- sock.bind(("localhost", 0))
201
+ sock.bind(("0.0.0.0" if os.getenv("SCRYPTED_CLUSTER_ADDRESS") else "127.0.0.1", 0))
202
202
  sock.listen()
203
203
 
204
204
  scrypted_loop: asyncio.AbstractEventLoop = asyncio.get_event_loop()