Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for uot on hysteria2 #1169

Open
wants to merge 6 commits into
base: dev-next
Choose a base branch
from

Commits on Jan 5, 2024

  1. Configuration menu
    Copy the full SHA
    1ce8ae6 View commit details
    Browse the repository at this point in the history
  2. Remove PROCESS_NAME_NATIVE dwFlag in process query output

    The `process_path` rule of sing-box is inherited from Clash,
    the original code uses the local system's path format (e.g. `\Device\HarddiskVolume1\folder\program.exe`),
    but when the device has multiple disks, the HarddiskVolume serial number is not stable.
    
    This change make QueryFullProcessImageNameW output a Win32 path (such as `C:\folder\program.exe`),
    which will disrupt the existing `process_path` use cases in Windows.
    nekohasekai committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    62ac3c8 View commit details
    Browse the repository at this point in the history
  3. Improve domain suffix match behavior

    For historical reasons, sing-box's `domain_suffix` rule matches literal prefixes instead of the same as other projects.
    
    This change modifies the behavior of `domain_suffix`: If the rule value is prefixed with `.`,
    the behavior is unchanged, otherwise it matches `(domain|.+\.domain)` instead.
    nekohasekai committed Jan 5, 2024
    2 Configuration menu
    Copy the full SHA
    f91a90c View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. Configuration menu
    Copy the full SHA
    906b554 View commit details
    Browse the repository at this point in the history
  2. Add network-online.target in .service files

    This helps the daemon work better on IoT devices
    like RaspberryPi.
    According to systemd's documentation,
    `network.target` means there has already been
    a network manager started, but the network may
    not be "up". On most PCs this does not matter
    because the network will turn to "up" almost
    immidiately. The IoT devices' network interface
    may not be set up quickly enough, so they may
    meet that the sing-box daemon is started before
    network is ready, which results that sing-box
    cannot find a working route. The workaround
    of this is restarting sing-box daemon but it
    absolutely is not the perfect solution.
    As `network-online.target` must be triggered by
    network manager after you configured it, I keep
    `network.target` so there will be no change to
    those who do not enabled proper trigger service
    like `NetworkManager-wait-online.service`.
    
    See also: https://systemd.io/NETWORK_ONLINE/
    arenekosreal committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    cca9c06 View commit details
    Browse the repository at this point in the history
  3. add support for uot on hysteria2

    Co-authored-by: chise0713 <[email protected]>
    Mahdi-zarei and chise0713 committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    25f4425 View commit details
    Browse the repository at this point in the history