Giter VIP home page Giter VIP logo

Comments (9)

kkksa528 avatar kkksa528 commented on August 17, 2024

docker能打包到docker官网吗

from clash2sfa.

xmdhs avatar xmdhs commented on August 17, 2024

似乎没有在 Clash.Meta 的文档和源码中找到关于对 flow: none 的处理,能帮忙指出来吗

docker 的话,传到 github 上应该够了,大多数的地方应该都是能直接用的

from clash2sfa.

kkksa528 avatar kkksa528 commented on August 17, 2024

我拿https://github.com/MetaCubeX/Clash.Meta/blob/Alpha/docs/config.yaml 模板举例

https://github.com/MetaCubeX/Clash.Meta/blob/d61a5af3351a7c4392bc5fe2b747906952b579ef/docs/config.yaml#LL472C7-L472C7

vless_tcp vless_vision 只是flow区别,前者无flow 后者flow是vision, 假如把后者 flow: xtls-rprx-vision改为flow: none
执行不会报错而是会变为vless_tcp , none就是xray标准里的 空白 /无 ,模板没看到这种写法,但这种写法一直存在且一直能识别处理,这写法存在真的好久了我朋友们都这么写,meta文档和源码我没找,但是实践证明meta是能处理的,none就是无,flow: none 代表无流控,我一直这么写的,这是符合直觉的(主要是为了服务端客户端好操作,删改流控只需改几个字母),我觉得xray和meta绝对会一直保留这个写法的

docker 的话,传到 github 上应该够了,大多数的地方应该都是能直接用的
docker有镜像源的话用户好更新啊,易更新可是docker长处啊

from clash2sfa.

xmdhs avatar xmdhs commented on August 17, 2024

看了下,clash.meta 没有报错的原因是如果网络类型是 ws (websocket)以及 flow 的字符长度小于 16,就不会启用 flow 相关的逻辑,所以写 none 因为小于 16 所以被当作没有启用。
https://github.com/MetaCubeX/Clash.Meta/blob/v1.14.4/adapter/outbound/vless.go#L516

当然等下也是会修复的。

docker 你可能没有明白我的意思,github 有自己的镜像源,和 docker 的 docker.io 类似,https://github.com/xmdhs/clash2sfa/pkgs/container/clash2sfa

from clash2sfa.

kkksa528 avatar kkksa528 commented on August 17, 2024

network: tcp 阿sir,我网络类型是tcp啊
ws-opts:
path: ""
headers:
Host: ""
这几行是模板,不填内容是会略过的
就我这个例子我把flow: none 改成 flow: xtls-rprx-vision 就能用了

from clash2sfa.

xmdhs avatar xmdhs commented on August 17, 2024

已经编辑了,是我眼瞎。

没有问题的原因是你 flow 填的字符串长度小于 16,所以被直接忽略掉,当然也就等同没启用了。当然了,会修的。

from clash2sfa.

kkksa528 avatar kkksa528 commented on August 17, 2024

原来如此啊,meta不是像xray一样处理flow: none ,而是加个判断(怪不得模板没这种写法)但结果都是一样的,感谢作者回复,期待更新。
我正在学习下github的镜像源,火星人第一次知道github也可以这样托管镜像,那源更新肯定也是和docker一样,感谢作者回复 。

from clash2sfa.

xmdhs avatar xmdhs commented on August 17, 2024

镜像已经构建好了,https://github.com/xmdhs/clash2sfa/pkgs/container/clash2sfa

可以试试

from clash2sfa.

kkksa528 avatar kkksa528 commented on August 17, 2024

没问题 sing-box配置文件 flow那行消失了竟然有点不习惯(none多好用啊),😭,感谢作者。

from clash2sfa.

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.