Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Keep a specific loopback address on the connect card

Bowen Xue93c2594d16e6
diff --git a/freevideo_engine/agent/routes.py b/freevideo_engine/agent/routes.py
index 98dc5ce..502ef95 100644
--- a/freevideo_engine/agent/routes.py
+++ b/freevideo_engine/agent/routes.py
@@ -35,7 +35,8 @@ def local_address(request):
socket = request.transport.get_extra_info('sockname') if request.transport else None
if not socket:
raise JobError('not_ready', 'Listening address unavailable')
- host = '[::1]' if ':' in socket[0] else '127.0.0.1'
+ # A specific loopback address is the only one that listens; anything else is reached through localhost.
+ host = '[::1]' if ':' in socket[0] else socket[0] if socket[0].startswith('127.') else '127.0.0.1'
scheme = 'https' if request.transport.get_extra_info('sslcontext') is not None else 'http'
return f'{scheme}://{host}:{socket[1]}'