Files
Marzban/xray_api/base.py
2022-11-25 03:38:42 +03:30

9 lines
200 B
Python

import grpc
class XRayBase(object):
def __init__(self, address, port):
self.address = address
self.port = port
self._channel = grpc.insecure_channel(f"{address}:{port}")