From 5e3478f1c16e0c42a299bcfce3e0b567bf4c2f7f Mon Sep 17 00:00:00 2001 From: Saeid <43953720+surbiks@users.noreply.github.com> Date: Tue, 2 Jan 2024 13:12:07 +0330 Subject: socks5 proxy option added to telegram bot settings (#1500) * socks5 option added to telegram bot settings * update socks5 proxy settings translations --- xray/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xray/api.go') 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 -- cgit v1.2.3