MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
15.78k stars 2.58k forks source link

[Feature] functionality to edit/add fragment to configs #1046

Open EbadiDev opened 7 months ago

EbadiDev commented 7 months ago

Verify steps

Description

Add a Hello Fragmentation option.

This feature allows for stable connections to servers that are blocked or blacklisted by the Great Firewall of China (GFW).

It means we can now also connect to servers behind a CDN with a "dirty" IP address, without the need to find a new "clean" IP.

Fragmentation has already been added to V2rayNG, and I was wondering if there are any plans to include it in a future release, in order to enable fragmentation for configurations? This would help hide the SNI from the GFW, which is especially relevant in Iran. This feature effectively solves ping, speed and blocking SNI issues in Iran. configuration can be like this:

- name: "vless-ws"
  type: vless
  server: server
  port: 443
  uuid: uuid
  udp: true
  tls: true
  network: ws
  servername: example.com # priority over wss host
  # skip-cert-verify: true
  fragment: true
  fragments-opt:
    fragment-packets : tlshello
    fragment-length: 50-100 # (min-max)
    fragment-interval: 10-20 # (min-max)
  ws-opts:
    path: "/"
    headers:
      Host: example.com
    # v2ray-http-upgrade: false

useful links: https://xtls.github.io/config/outbounds/freedom.html

Possible Solution

No response

APT-ZERO commented 7 months ago

It's working flawless on Xray-core, Please add it to Meta too

hamedsbt commented 6 months ago

I hope so.

hadifarnoud commented 6 months ago

cannot wait for this one

yanghuan commented 6 months ago

i also need it

fsheidaiee commented 5 months ago

please add this feature. its implemented on xray core. thanks

hadifarnoud commented 5 months ago

please add this feature. its implemented on xray core. thanks

https://github.com/XTLS/Xray-core/pull/2131/commits

hadifarnoud commented 4 months ago

any updates on this?

huajizhige commented 4 months ago

no plan

mostafaznv commented 4 months ago

the fragment is the only option for almost all proxy protocols inside Iran.

hadifarnoud commented 4 months ago

I keep checking this issue in hopes of some activity. why nobody is willing to work on this?

smaa commented 3 months ago

waiting for this enhancement

wikm360 commented 2 months ago

please add this feature.

hadifarnoud commented 1 week ago

@Skyxim