Skip to content

Commit e9a6078

Browse files
committed
修复tls状态显示
1 parent 3c51d39 commit e9a6078

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

v2ray_util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '3.8.2'
1+
__version__ = '3.8.3'
22

33
from .util_core.trans import _

v2ray_util/util_core/group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(self, ip, port, *, end_port=None, tfo=None, tls="none", dyp=Dyport(
208208
self.index = index
209209

210210
def show_node(self, index):
211-
tls = _("close") if self.tls == "" else _("open")
211+
tls = _("open") if self.tls in ("tls", "xtls") else _("close")
212212
tfo = "TcpFastOpen: {}".format(self.tfo) if self.tfo != None else ""
213213
dyp = "DynamicPort: {}".format(self.dyp) if self.dyp.status else ""
214214
port_way = "-{}".format(self.end_port) if self.end_port else ""
@@ -228,7 +228,7 @@ def show_node(self, index):
228228

229229
# print一个实例打印的字符串
230230
def __str__(self):
231-
tls = _("close") if self.tls == "" else _("open")
231+
tls = _("open") if self.tls in ("tls", "xtls") else _("close")
232232
tfo = "TcpFastOpen: {}".format(self.tfo) if self.tfo != None else ""
233233
dyp = "DynamicPort: {}".format(self.dyp) if self.dyp.status else ""
234234
port_way = "-{}".format(self.end_port) if self.end_port else ""

0 commit comments

Comments
 (0)