Coder Social home page Coder Social logo

Comments (12)

Seekerzero avatar Seekerzero commented on September 23, 2024

Traceback (most recent call last):
File "/usr/local/v2ray.fun/other_setting/stats_ctr.py", line 3, in
import read_json
File "/usr/local/v2ray.fun/read_json.py", line 118, in
read_sin_user(conf_inbound, multiUserConf, index_dict)
File "/usr/local/v2ray.fun/read_json.py", line 45, in read_sin_user
conf_host = conf_stream["wsSettings"]["headers"]["Host"]
KeyError: 'Host'

from multi-v2ray.

Jrohy avatar Jrohy commented on September 23, 2024

修改下/etc/v2ray/config.json文件里的host字段, 改为Host
image

from multi-v2ray.

Seekerzero avatar Seekerzero commented on September 23, 2024

更新了脚本就这样了QAQ

from multi-v2ray.

Jrohy avatar Jrohy commented on September 23, 2024

最开始的v2ray.fun这个模板字段就写错了,只有http/2是host,ws和http在headers里面都是Host, 因为刚刚的版本用到这个才去修正了

from multi-v2ray.

Seekerzero avatar Seekerzero commented on September 23, 2024

哦哦
是要去手动修改吗??
改成自己的域名???

from multi-v2ray.

Seekerzero avatar Seekerzero commented on September 23, 2024

还是改大小写???

from multi-v2ray.

Jrohy avatar Jrohy commented on September 23, 2024

手动改host为Host, 最开始的模板写错了的

from multi-v2ray.

Seekerzero avatar Seekerzero commented on September 23, 2024

好了
谢谢大佬!!!

from multi-v2ray.

Jrohy avatar Jrohy commented on September 23, 2024

不客气

from multi-v2ray.

wangwill avatar wangwill commented on September 23, 2024

更新脚本后遇到同样问题 Host。。

但是检查 /etc/v2ray/config.json 是小写host

from multi-v2ray.

Jrohy avatar Jrohy commented on September 23, 2024

@wangwill 就是要改成大写Host

from multi-v2ray.

wangwill avatar wangwill commented on September 23, 2024

抱歉刚刚在平板上没看全 改Host后问题解决

再次感谢

from multi-v2ray.

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.