Skip to content

Commit 3047d36

Browse files
committed
fix:bug
1 parent 2f079a0 commit 3047d36

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

bin/protoc

7.77 MB
Binary file not shown.

xtlsapi/singbox_api/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
sudo apt install -y protobuf-compiler
2-
protoc ./stats.proto --python_out=./
1+
# sudo apt install -y protobuf-compiler
2+
#wget https://github.com/protocolbuffers/protobuf/releases/download/v23.1/protoc-23.1-linux-aarch_64.zip
3+
../../bin/protoc ./stats.proto --python_out=./
34
python3 -m grpc_tools.protoc -I ./ --python_out=./ --grpc_python_out=./ ./stats.proto

xtlsapi/singbox_api/stats_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
44

5-
import stats_pb2 as stats__pb2
5+
from . import stats_pb2 as stats__pb2
66

77

88
class StatsServiceStub(object):

xtlsapi/singbox_api_services/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from .stats import StatsAPIService
2-
from .handler import HandlerAPIService
3-
from .logger import LoggerAPIService
2+
43

54

65
class APIService(StatsAPIService):

0 commit comments

Comments
 (0)