Skip to content

Commit 17a9677

Browse files
committed
优化选项选择
1 parent 7faefcc commit 17a9677

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v2ray_util/util_core/selector.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ def select(self):
2121
else:
2222
choice = input(self.msg)
2323

24+
if not choice:
25+
print("use {}".format(self.collection[0]))
26+
return self.collection[0]
27+
2428
if not choice.isnumeric():
2529
raise RuntimeError(_('input error, please check is number'))
2630

0 commit comments

Comments
 (0)