Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 24, 2018
1 parent ae9aab7 commit 50f99b8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions config_modify/alterid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from selector import ClientSelector

cs = ClientSelector('修改alterId')
client_index = cs.client_index
group = cs.group

if group == None:
exit(-1)
pass
else:
client_index = cs.client_index
if type(group.node_list[client_index]) == Vmess:
print("当前节点alterID: {}".format(group.node_list[client_index].alter_id))
new_alterid = input("请输入新的alterID: ")
Expand Down
2 changes: 1 addition & 1 deletion config_modify/dyn_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
group = gs.group

if group == None:
exit()
pass
else:
print('当前组的动态端口状态:{}'.format(group.dyp))
gw = GroupWriter(group.tag, group.index)
Expand Down
7 changes: 3 additions & 4 deletions config_modify/n_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
from utils import is_email

cs = ClientSelector('修改email')
client_index = cs.client_index
group = cs.group
group_list = cs.group_list

if group == None:
exit(-1)
pass
elif type(group.node_list[0]) == Socks:
print("Socks5节点 不支持写入email!")
exit(-1)
else:
client_index = cs.client_index
group_list = cs.group_list
print ("当前节点email为:{}".format(group.node_list[client_index].user_info))
email = ""
while True:
Expand Down
4 changes: 2 additions & 2 deletions config_modify/n_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from selector import ClientSelector

cs = ClientSelector('修改uuid')
client_index = cs.client_index
group = cs.group

if group == None:
exit(-1)
pass
else:
client_index = cs.client_index
if type(group.node_list[client_index]) == Vmess:
print("当前节点UUID为:{}".format(group.node_list[client_index].password))
choice = input("是否要随机生成一个新的UUID (y/n):").lower()
Expand Down
2 changes: 1 addition & 1 deletion config_modify/port.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
group = gs.group

if group == None:
exit(-1)
pass
else:
if group.end_port:
port_info = "{0}-{1}".format(group.port, group.end_port)
Expand Down
2 changes: 1 addition & 1 deletion v2ray
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ if [[ ${CHOICE} == 3 ]]; then
echo -e "10.更改Shadowsocks密码\n"

while :; do echo
read -n1 -p "请输入数字选择功能: " CONFIG_CHOICE
read -p "请输入数字选择功能: " CONFIG_CHOICE
if [[ ! $CONFIG_CHOICE =~ (^[1-9]$|10) ]]; then
if [[ -z ${CONFIG_CHOICE} ]];then
bash /usr/local/bin/v2ray
Expand Down

0 comments on commit 50f99b8

Please sign in to comment.