Skip to content

Commit d38febc

Browse files
committed
代码精简
1 parent 62360f6 commit d38febc

File tree

9 files changed

+2
-82
lines changed

9 files changed

+2
-82
lines changed

v2ray.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,7 @@ profileInit() {
224224
[[ -z $(grep PYTHONIOENCODING=utf-8 ~/$ENV_FILE) ]] && echo "export PYTHONIOENCODING=utf-8" >> ~/$ENV_FILE && source ~/$ENV_FILE
225225

226226
#全新安装的新配置
227-
if [[ ${INSTALL_WAY} == 0 ]];then
228-
v2ray new
229-
else
230-
v2ray convert
231-
fi
227+
[[ ${INSTALL_WAY} == 0 ]] && v2ray new
232228

233229
echo ""
234230
}

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.8'
1+
__version__ = '3.8.9'
22

33
from .util_core.trans import _

v2ray_util/global_setting/iptables_ctr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3-
import os
43
import platform
54
import subprocess
65
import pkg_resources
-83 Bytes
Binary file not shown.

v2ray_util/locale_i18n/zh_CH/LC_MESSAGES/lang.po

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,6 @@ msgstr "生成客户端json"
150150

151151
### client.py end ###
152152

153-
### converter.py start ###
154-
155-
msgid "tranfrom to v2ray new version json.."
156-
msgstr "转换配置文件格式中.."
157-
158-
### converter.py end ###
159-
160153
### group.py start ###
161154

162155
msgid "HTTPS Socks5 don't support telegram share link"

v2ray_util/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ def parse_arg():
117117
updateSh()
118118
elif sys.argv[1] == "new":
119119
V2ray.new()
120-
elif sys.argv[1] == "convert":
121-
V2ray.convert()
122120
elif sys.argv[1] == "log":
123121
V2ray.log()
124122
elif sys.argv[1] == "cdn":

v2ray_util/util_core/converter.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

v2ray_util/util_core/profile.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ def read_json(self):
3838
with open(self.path, 'r') as json_file:
3939
self.config = json.load(json_file)
4040

41-
if "inbounds" not in self.config:
42-
import converter
43-
self.modify_time = os.path.getmtime(self.path)
44-
with open(self.path, 'r') as json_file:
45-
self.config = json.load(json_file)
46-
4741
#读取配置文件大框架
4842
conf_inbounds = self.config["inbounds"]
4943
conf_rules = self.config["routing"]["rules"]

v2ray_util/util_core/v2ray.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ def stop(cls):
129129
else:
130130
cls.run("systemctl stop v2ray", "stop")
131131

132-
@classmethod
133-
def convert(cls):
134-
from .converter import ConfigConverter
135-
136132
@classmethod
137133
def check(cls):
138134
if not os.path.exists("/etc/v2ray_util/util.cfg"):

0 commit comments

Comments
 (0)