Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaeid <43953720+surbiks@users.noreply.github.com>2024-01-02 12:42:07 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-01-03 15:59:29 +0300
commit5e3478f1c16e0c42a299bcfce3e0b567bf4c2f7f (patch)
tree3592a4c8c146ea669e777d5e8909de79410a2cca /xray/api.go
parentc76199514a62c921901b2b2a1c4dd3f93ff8df2a (diff)
socks5 proxy option added to telegram bot settings (#1500)
* socks5 option added to telegram bot settings * update socks5 proxy settings translations
Diffstat (limited to 'xray/api.go')
-rw-r--r--xray/api.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/xray/api.go b/xray/api.go
index 10d22ae1..36b19875 100644
--- a/xray/api.go
+++ b/xray/api.go
@@ -50,7 +50,9 @@ func (x *XrayAPI) Init(apiPort int) (err error) {
}
func (x *XrayAPI) Close() {
- x.grpcClient.Close()
+ if x.grpcClient != nil {
+ x.grpcClient.Close()
+ }
x.HandlerServiceClient = nil
x.StatsServiceClient = nil
x.isConnected = false