Code Monkey home page Code Monkey logo

Comments (7)

Toperlock avatar Toperlock commented on August 17, 2024

main.py 里找到 select_config_template() 函数
直接指定 uip = 1 就是选择第一个模板
image

from sing-box-subscribe.

huang5307 avatar huang5307 commented on August 17, 2024

所以我执行的命令行 要写成 python main.py 1 还是 python main.py uip = 1 ?我试过 都是不行的,还是您的意思是要我自己改写程序?才能达到自动执行的条件?

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 17, 2024

所以我执行的命令行 要写成 python main.py 1 还是 python main.py uip = 1 ?我试过 都是不行的,还是您的意思是要我自己改写程序?才能达到自动执行的条件?

不是修改命令,是修改mian.py这个文件内容。

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 17, 2024

如果你不修改main.py文件内容,
执行命令:
python main.py --template_index=0
就是选择第一个模板

from sing-box-subscribe.

huang5307 avatar huang5307 commented on August 17, 2024

如果你不修改main.py文件内容, 执行命令: python main.py --template_index=0 就是选择第一个模板

thanks!感谢了,这就是我想要的。
但是我试了在命令行执行 python main.py --template_index=0,还是会出现如下要求输入:

C:\sing-box\sing-box-subscribe>python main.py --template_index=0
1、config_template_groups_rule_set_tun 2、config_template_groups_rule_set_tun_fakeip 3、config_template_groups_v6_rule_set_tun 4、config_template_no_groups_tun_VN 5、config_template_toper_win_use
Nhập số để chọn mẫu cấu hình tương ứng (nhấn Enter để chọn mẫu cấu hình đầu tiên theo mặc định):
输入序号,载入对应config模板(直接回车默认选第一个配置模板):

PS:直接修改main.py的方式可以。

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 17, 2024

如果你不修改main.py文件内容, 执行命令: python main.py --template_index=0 就是选择第一个模板

thanks!感谢了,这就是我想要的。 但是我试了在命令行执行 python main.py --template_index=0,还是会出现如下要求输入:

C:\sing-box\sing-box-subscribe>python main.py --template_index=0
1、config_template_groups_rule_set_tun 2、config_template_groups_rule_set_tun_fakeip 3、config_template_groups_v6_rule_set_tun 4、config_template_no_groups_tun_VN 5、config_template_toper_win_use
Nhập số để chọn mẫu cấu hình tương ứng (nhấn Enter để chọn mẫu cấu hình đầu tiên theo mặc định):
输入序号,载入对应config模板(直接回车默认选第一个配置模板):

PS:直接修改main.py的方式可以。

忘了说,releases里因为是 no flask 版本,没有 template_index参数。你直接下载这个项目解压运行

from sing-box-subscribe.

huang5307 avatar huang5307 commented on August 17, 2024

如果你不修改main.py文件内容, 执行命令: python main.py --template_index=0 就是选择第一个模板

thanks!感谢了,这就是我想要的。 但是我试了在命令行执行 python main.py --template_index=0,还是会出现如下要求输入:

C:\sing-box\sing-box-subscribe>python main.py --template_index=0
1、config_template_groups_rule_set_tun 2、config_template_groups_rule_set_tun_fakeip 3、config_template_groups_v6_rule_set_tun 4、config_template_no_groups_tun_VN 5、config_template_toper_win_use
Nhập số để chọn mẫu cấu hình tương ứng (nhấn Enter để chọn mẫu cấu hình đầu tiên theo mặc định):
输入序号,载入对应config模板(直接回车默认选第一个配置模板):

PS:直接修改main.py的方式可以。

忘了说,releases里因为是 no flask 版本,没有 template_index参数。你直接下载这个项目解压运行 image image

ok,thanks

from sing-box-subscribe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.