Skip to content

Commit

Permalink
fix:bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed May 18, 2023
1 parent 2f079a0 commit 3047d36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file added bin/protoc
Binary file not shown.
5 changes: 3 additions & 2 deletions xtlsapi/singbox_api/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sudo apt install -y protobuf-compiler
protoc ./stats.proto --python_out=./
# sudo apt install -y protobuf-compiler
#wget https://github.com/protocolbuffers/protobuf/releases/download/v23.1/protoc-23.1-linux-aarch_64.zip
../../bin/protoc ./stats.proto --python_out=./
python3 -m grpc_tools.protoc -I ./ --python_out=./ --grpc_python_out=./ ./stats.proto
2 changes: 1 addition & 1 deletion xtlsapi/singbox_api/stats_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

import stats_pb2 as stats__pb2
from . import stats_pb2 as stats__pb2


class StatsServiceStub(object):
Expand Down
3 changes: 1 addition & 2 deletions xtlsapi/singbox_api_services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .stats import StatsAPIService
from .handler import HandlerAPIService
from .logger import LoggerAPIService



class APIService(StatsAPIService):
Expand Down

0 comments on commit 3047d36

Please sign in to comment.