socks5 proxy option added to telegram bot settings (#1500)

* socks5 option added to telegram bot settings

* update socks5 proxy settings translations
This commit is contained in:
Saeid
2024-01-02 13:12:07 +03:30
committed by MHSanaei
parent c76199514a
commit 5e3478f1c1
13 changed files with 54 additions and 3 deletions

View File

@@ -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