This commit is contained in:
Ryan 2025-01-21 22:03:06 +00:00 committed by GitHub
commit 9bc603f8c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
346 changed files with 1116 additions and 1190 deletions

View file

@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: mihomo Community Support
url: https://github.com/MetaCubeX/mihomo/discussions
url: https://github.com/abyss219/mihomo/discussions
about: Please ask and answer questions about mihomo here.

View file

@ -29,4 +29,4 @@ echo "## Maintenance" >> release.md
git log --pretty=format:"* %h %s by @%an" --grep="^chore\|^docs\|^refactor" -i $version_range | sort -f | uniq >> release.md
echo "" >> release.md
echo "**Full Changelog**: https://github.com/MetaCubeX/mihomo/compare/$version_range" >> release.md
echo "**Full Changelog**: https://github.com/abyss219/mihomo/compare/$version_range" >> release.md

View file

@ -21,8 +21,7 @@ concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
REGISTRY: docker.io
jobs:
build:
runs-on: ubuntu-latest
@ -218,7 +217,7 @@ jobs:
GOMIPS: ${{matrix.jobs.gomips}}
run: |
go env
go build -v -tags "with_gvisor" -trimpath -ldflags "${BUILDTAG} -X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -X 'github.com/metacubex/mihomo/constant.BuildTime=${BUILDTIME}' -w -s -buildid="
go build -v -tags "with_gvisor" -trimpath -ldflags "${BUILDTAG} -X 'github.com/abyss219/mihomo/constant.Version=${VERSION}' -X 'github.com/abyss219/mihomo/constant.BuildTime=${BUILDTIME}' -w -s -buildid="
if [ "${{matrix.jobs.goos}}" = "windows" ]; then
cp mihomo.exe mihomo-${{matrix.jobs.goos}}-${{matrix.jobs.output}}.exe
zip -r mihomo-${{matrix.jobs.goos}}-${{matrix.jobs.output}}-${VERSION}.zip mihomo-${{matrix.jobs.goos}}-${{matrix.jobs.output}}.exe
@ -241,7 +240,7 @@ jobs:
else
ARCH=${{matrix.jobs.goarch}}
fi
PackageVersion=$(curl -s "https://api.github.com/repos/MetaCubeX/mihomo/releases/latest" | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$' | sed 's/v//g' )
PackageVersion=$(curl -s "https://api.github.com/repos/abyss219/mihomo/releases/latest" | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$' | sed 's/v//g' )
if [ $(git branch | awk -F ' ' '{print $2}') = "Alpha" ]; then
PackageVersion="$(echo "${PackageVersion}" | awk -F '.' '{$NF = $NF + 1; print}' OFS='.')-${VERSION}"
fi
@ -345,7 +344,7 @@ jobs:
Release created at ${{ env.BUILDTIME }}
Synchronize ${{ github.ref_name }} branch code updates, keeping only the latest version
<br>
[我应该下载哪个文件? / Which file should I download?](https://github.com/MetaCubeX/mihomo/wiki/FAQ)
[我应该下载哪个文件? / Which file should I download?](https://github.com/abyss219/mihomo/wiki/FAQ)
[二进制文件筛选 / Binary file selector](https://metacubex.github.io/Meta-Docs/startup/#_1)
[查看文档 / Docs](https://metacubex.github.io/Meta-Docs/)
EOF
@ -418,99 +417,4 @@ jobs:
with:
tag_name: ${{ github.event.inputs.version }}
files: bin/*
body_path: release.md
Docker:
if: ${{ !startsWith(github.event_name, 'pull_request') }}
permissions: write-all
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: bin/
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R
working-directory: bin
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
if: ${{ github.event_name != 'workflow_dispatch' }}
id: meta_alpha
uses: docker/metadata-action@v5
with:
images: '${{ env.REGISTRY }}/${{ github.repository }}'
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' }}
id: meta_release
uses: docker/metadata-action@v5
with:
images: '${{ env.REGISTRY }}/${{ github.repository }}'
tags: |
${{ github.event.inputs.version }}
flavor: |
latest=true
labels: org.opencontainers.image.version=${{ github.event.inputs.version }}
- name: Show files
run: |
ls .
ls bin/
- name: login to docker REGISTRY
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: |
linux/386
linux/amd64
linux/arm64
linux/arm/v7
tags: ${{ steps.meta_alpha.outputs.tags }}
labels: ${{ steps.meta_alpha.outputs.labels }}
- name: Build and push Docker image
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' }}
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: |
linux/386
linux/amd64
linux/arm64
linux/arm/v7
tags: ${{ steps.meta_release.outputs.tags }}
labels: ${{ steps.meta_release.outputs.labels }}
body_path: release.md

View file

@ -11,7 +11,7 @@ linters-settings:
custom-order: true
sections:
- standard
- prefix(github.com/metacubex/mihomo)
- prefix(github.com/abyss219/mihomo)
- default
staticcheck:
go: '1.19'

View file

@ -15,7 +15,7 @@ RUN FILE_NAME=`sh file-name.sh` && echo $FILE_NAME && \
FILE_NAME=`ls bin/ | egrep "$FILE_NAME.gz"|awk NR==1` && echo $FILE_NAME && \
mv bin/$FILE_NAME mihomo.gz && gzip -d mihomo.gz && chmod +x mihomo && echo "$FILE_NAME" > /mihomo-config/test
FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/MetaCubeX/mihomo"
LABEL org.opencontainers.image.source="https://github.com/abyss219/mihomo"
RUN apk add --no-cache ca-certificates tzdata iptables

View file

@ -12,8 +12,8 @@ VERSION=$(shell git rev-parse --short HEAD)
endif
BUILDTIME=$(shell date -u)
GOBUILD=CGO_ENABLED=0 go build -tags with_gvisor -trimpath -ldflags '-X "github.com/metacubex/mihomo/constant.Version=$(VERSION)" \
-X "github.com/metacubex/mihomo/constant.BuildTime=$(BUILDTIME)" \
GOBUILD=CGO_ENABLED=0 go build -tags with_gvisor -trimpath -ldflags '-X "github.com/abyss219/mihomo/constant.Version=$(VERSION)" \
-X "github.com/abyss219/mihomo/constant.BuildTime=$(BUILDTIME)" \
-w -s -buildid='
PLATFORM_LIST = \

View file

@ -6,14 +6,14 @@
<h3 align="center">Another Mihomo Kernel.</h3>
<p align="center">
<a href="https://goreportcard.com/report/github.com/MetaCubeX/mihomo">
<img src="https://goreportcard.com/badge/github.com/MetaCubeX/mihomo?style=flat-square">
<a href="https://goreportcard.com/report/github.com/abyss219/mihomo">
<img src="https://goreportcard.com/badge/github.com/abyss219/mihomo?style=flat-square">
</a>
<img src="https://img.shields.io/github/go-mod/go-version/MetaCubeX/mihomo/Alpha?style=flat-square">
<a href="https://github.com/MetaCubeX/mihomo/releases">
<img src="https://img.shields.io/github/release/MetaCubeX/mihomo/all.svg?style=flat-square">
<img src="https://img.shields.io/github/go-mod/go-version/abyss219/mihomo/Alpha?style=flat-square">
<a href="https://github.com/abyss219/mihomo/releases">
<img src="https://img.shields.io/github/release/abyss219/mihomo/all.svg?style=flat-square">
</a>
<a href="https://github.com/MetaCubeX/mihomo">
<a href="https://github.com/abyss219/mihomo">
<img src="https://img.shields.io/badge/release-Meta-00b4f0?style=flat-square">
</a>
</p>
@ -36,7 +36,7 @@ A web dashboard with first-class support for this project has been created; it c
## Configration example
Configuration example is located at [/docs/config.yaml](https://github.com/MetaCubeX/mihomo/blob/Alpha/docs/config.yaml).
Configuration example is located at [/docs/config.yaml](https://github.com/abyss219/mihomo/blob/Alpha/docs/config.yaml).
## Docs
@ -50,7 +50,7 @@ Requirements:
Build mihomo:
```shell
git clone https://github.com/MetaCubeX/mihomo.git
git clone https://github.com/abyss219/mihomo.git
cd mihomo && go mod download
go build
```

View file

@ -13,13 +13,13 @@ import (
"strings"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/metacubex/mihomo/common/queue"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/queue"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
"github.com/puzpuzpuz/xsync/v3"
)

View file

@ -3,7 +3,7 @@ package inbound
import (
"net"
C "github.com/metacubex/mihomo/constant"
C "github.com/abyss219/mihomo/constant"
)
type Addition func(metadata *C.Metadata)

View file

@ -4,7 +4,7 @@ import (
"net"
"net/netip"
C "github.com/metacubex/mihomo/constant"
C "github.com/abyss219/mihomo/constant"
)
var skipAuthPrefixes []netip.Prefix

View file

@ -3,8 +3,8 @@ package inbound
import (
"net"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/socks5"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/socks5"
)
// NewHTTP receive normal http request and return HTTPContext

View file

@ -4,7 +4,7 @@ import (
"net"
"net/http"
C "github.com/metacubex/mihomo/constant"
C "github.com/abyss219/mihomo/constant"
)
// NewHTTPS receive CONNECT request and return ConnContext

View file

@ -4,7 +4,7 @@ import (
"net"
"net/netip"
C "github.com/metacubex/mihomo/constant"
C "github.com/abyss219/mihomo/constant"
)
var lanAllowedIPs []netip.Prefix

View file

@ -7,7 +7,7 @@ import (
"net/netip"
"sync"
"github.com/metacubex/mihomo/component/keepalive"
"github.com/abyss219/mihomo/component/keepalive"
"github.com/metacubex/tfo-go"
)

View file

@ -1,8 +1,8 @@
package inbound
import (
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/socks5"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/socks5"
)
// NewPacket is PacketAdapter generator

View file

@ -3,8 +3,8 @@ package inbound
import (
"net"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/socks5"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/socks5"
)
// NewSocket receive TCP inbound and return ConnContext

View file

@ -7,9 +7,9 @@ import (
"strconv"
"strings"
"github.com/metacubex/mihomo/common/nnip"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/socks5"
"github.com/abyss219/mihomo/common/nnip"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/socks5"
)
func parseSocksAddr(target socks5.Addr) *C.Metadata {

View file

@ -7,10 +7,10 @@ import (
"strings"
"syscall"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
)
type Base struct {

View file

@ -3,10 +3,10 @@ package outbound
import (
"context"
"errors"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/loopback"
"github.com/metacubex/mihomo/component/resolver"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/loopback"
"github.com/abyss219/mihomo/component/resolver"
C "github.com/abyss219/mihomo/constant"
)
type Direct struct {

View file

@ -5,12 +5,12 @@ import (
"net"
"time"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/pool"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/resolver"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/pool"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/resolver"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
)
type Dns struct {

View file

@ -12,10 +12,10 @@ import (
"net/http"
"strconv"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
)
type Http struct {

View file

@ -15,18 +15,18 @@ import (
"github.com/metacubex/quic-go/congestion"
M "github.com/sagernet/sing/common/metadata"
CN "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
hyCongestion "github.com/metacubex/mihomo/transport/hysteria/congestion"
"github.com/metacubex/mihomo/transport/hysteria/core"
"github.com/metacubex/mihomo/transport/hysteria/obfs"
"github.com/metacubex/mihomo/transport/hysteria/pmtud_fix"
"github.com/metacubex/mihomo/transport/hysteria/transport"
"github.com/metacubex/mihomo/transport/hysteria/utils"
CN "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
hyCongestion "github.com/abyss219/mihomo/transport/hysteria/congestion"
"github.com/abyss219/mihomo/transport/hysteria/core"
"github.com/abyss219/mihomo/transport/hysteria/obfs"
"github.com/abyss219/mihomo/transport/hysteria/pmtud_fix"
"github.com/abyss219/mihomo/transport/hysteria/transport"
"github.com/abyss219/mihomo/transport/hysteria/utils"
)
const (

View file

@ -10,14 +10,14 @@ import (
"strconv"
"time"
CN "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
tuicCommon "github.com/metacubex/mihomo/transport/tuic/common"
CN "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
tuicCommon "github.com/abyss219/mihomo/transport/tuic/common"
"github.com/metacubex/sing-quic/hysteria2"

View file

@ -8,9 +8,9 @@ import (
"strconv"
"sync"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
mieruclient "github.com/enfein/mieru/v3/apis/client"
mierumodel "github.com/enfein/mieru/v3/apis/model"

View file

@ -7,7 +7,7 @@ import (
"errors"
"fmt"
tlsC "github.com/metacubex/mihomo/component/tls"
tlsC "github.com/abyss219/mihomo/component/tls"
)
type RealityOptions struct {

View file

@ -6,9 +6,9 @@ import (
"net"
"time"
"github.com/metacubex/mihomo/common/buf"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/common/buf"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
)
type Reject struct {

View file

@ -7,16 +7,16 @@ import (
"net"
"strconv"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/structure"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
"github.com/metacubex/mihomo/component/resolver"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/restls"
obfs "github.com/metacubex/mihomo/transport/simple-obfs"
shadowtls "github.com/metacubex/mihomo/transport/sing-shadowtls"
v2rayObfs "github.com/metacubex/mihomo/transport/v2ray-plugin"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/structure"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
"github.com/abyss219/mihomo/component/resolver"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/restls"
obfs "github.com/abyss219/mihomo/transport/simple-obfs"
shadowtls "github.com/abyss219/mihomo/transport/sing-shadowtls"
v2rayObfs "github.com/abyss219/mihomo/transport/v2ray-plugin"
restlsC "github.com/3andne/restls-client-go"
shadowsocks "github.com/metacubex/sing-shadowsocks2"

View file

@ -7,16 +7,16 @@ import (
"net"
"strconv"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/shadowsocks/core"
"github.com/metacubex/mihomo/transport/shadowsocks/shadowaead"
"github.com/metacubex/mihomo/transport/shadowsocks/shadowstream"
"github.com/metacubex/mihomo/transport/socks5"
"github.com/metacubex/mihomo/transport/ssr/obfs"
"github.com/metacubex/mihomo/transport/ssr/protocol"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/shadowsocks/core"
"github.com/abyss219/mihomo/transport/shadowsocks/shadowaead"
"github.com/abyss219/mihomo/transport/shadowsocks/shadowstream"
"github.com/abyss219/mihomo/transport/socks5"
"github.com/abyss219/mihomo/transport/ssr/obfs"
"github.com/abyss219/mihomo/transport/ssr/protocol"
)
type ShadowSocksR struct {
@ -131,7 +131,7 @@ func (ssr *ShadowSocksR) ProxyInfo() C.ProxyInfo {
func NewShadowSocksR(option ShadowSocksROption) (*ShadowSocksR, error) {
// SSR protocol compatibility
// https://github.com/metacubex/mihomo/pull/2056
// https://github.com/abyss219/mihomo/pull/2056
if option.Cipher == "none" {
option.Cipher = "dummy"
}

View file

@ -5,12 +5,12 @@ import (
"errors"
"runtime"
CN "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
"github.com/metacubex/mihomo/component/resolver"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
CN "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
"github.com/abyss219/mihomo/component/resolver"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
mux "github.com/sagernet/sing-mux"
E "github.com/sagernet/sing/common/exceptions"

View file

@ -6,12 +6,12 @@ import (
"net"
"strconv"
"github.com/metacubex/mihomo/common/structure"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
obfs "github.com/metacubex/mihomo/transport/simple-obfs"
"github.com/metacubex/mihomo/transport/snell"
"github.com/abyss219/mihomo/common/structure"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
obfs "github.com/abyss219/mihomo/transport/simple-obfs"
"github.com/abyss219/mihomo/transport/snell"
)
type Snell struct {

View file

@ -10,11 +10,11 @@ import (
"net/netip"
"strconv"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/socks5"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/socks5"
)
type Socks5 struct {

View file

@ -12,10 +12,10 @@ import (
"strings"
"sync"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
"github.com/metacubex/randv2"
"golang.org/x/crypto/ssh"

View file

@ -9,14 +9,14 @@ import (
"net/http"
"strconv"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
tlsC "github.com/metacubex/mihomo/component/tls"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/gun"
"github.com/metacubex/mihomo/transport/shadowsocks/core"
"github.com/metacubex/mihomo/transport/trojan"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
tlsC "github.com/abyss219/mihomo/component/tls"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/gun"
"github.com/abyss219/mihomo/transport/shadowsocks/core"
"github.com/abyss219/mihomo/transport/trojan"
)
type Trojan struct {

View file

@ -10,12 +10,12 @@ import (
"strconv"
"time"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
"github.com/metacubex/mihomo/component/resolver"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/tuic"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
"github.com/abyss219/mihomo/component/resolver"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/tuic"
"github.com/gofrs/uuid/v5"
"github.com/metacubex/quic-go"

View file

@ -11,9 +11,9 @@ import (
"strconv"
"sync"
"github.com/metacubex/mihomo/component/resolver"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/transport/socks5"
"github.com/abyss219/mihomo/component/resolver"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/transport/socks5"
)
var (

View file

@ -12,20 +12,20 @@ import (
"strconv"
"sync"
"github.com/metacubex/mihomo/common/convert"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
"github.com/metacubex/mihomo/component/resolver"
tlsC "github.com/metacubex/mihomo/component/tls"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
"github.com/metacubex/mihomo/transport/gun"
"github.com/metacubex/mihomo/transport/socks5"
"github.com/metacubex/mihomo/transport/vless"
"github.com/metacubex/mihomo/transport/vmess"
"github.com/abyss219/mihomo/common/convert"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
"github.com/abyss219/mihomo/component/resolver"
tlsC "github.com/abyss219/mihomo/component/tls"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
"github.com/abyss219/mihomo/transport/gun"
"github.com/abyss219/mihomo/transport/socks5"
"github.com/abyss219/mihomo/transport/vless"
"github.com/abyss219/mihomo/transport/vmess"
vmessSing "github.com/metacubex/sing-vmess"
"github.com/metacubex/sing-vmess/packetaddr"

View file

@ -11,17 +11,17 @@ import (
"strings"
"sync"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
"github.com/metacubex/mihomo/component/resolver"
tlsC "github.com/metacubex/mihomo/component/tls"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/ntp"
"github.com/metacubex/mihomo/transport/gun"
mihomoVMess "github.com/metacubex/mihomo/transport/vmess"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
"github.com/abyss219/mihomo/component/resolver"
tlsC "github.com/abyss219/mihomo/component/tls"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/ntp"
"github.com/abyss219/mihomo/transport/gun"
mihomoVMess "github.com/abyss219/mihomo/transport/vmess"
vmess "github.com/metacubex/sing-vmess"
"github.com/metacubex/sing-vmess/packetaddr"

View file

@ -14,15 +14,15 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/common/atomic"
CN "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
"github.com/metacubex/mihomo/component/resolver"
"github.com/metacubex/mihomo/component/slowdown"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/dns"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/common/atomic"
CN "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
"github.com/abyss219/mihomo/component/resolver"
"github.com/abyss219/mihomo/component/slowdown"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/dns"
"github.com/abyss219/mihomo/log"
amnezia "github.com/metacubex/amneziawg-go/device"
wireguard "github.com/metacubex/sing-wireguard"

View file

@ -6,13 +6,13 @@ import (
"errors"
"time"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/common/callback"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/common/callback"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
)
type Fallback struct {

View file

@ -7,14 +7,14 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/common/atomic"
"github.com/metacubex/mihomo/common/utils"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
types "github.com/metacubex/mihomo/constant/provider"
"github.com/metacubex/mihomo/log"
"github.com/metacubex/mihomo/tunnel"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/utils"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
types "github.com/abyss219/mihomo/constant/provider"
"github.com/abyss219/mihomo/log"
"github.com/abyss219/mihomo/tunnel"
"github.com/dlclark/regexp2"
)

View file

@ -9,14 +9,14 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/common/callback"
"github.com/metacubex/mihomo/common/lru"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/common/callback"
"github.com/abyss219/mihomo/common/lru"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
"golang.org/x/net/publicsuffix"
)

View file

@ -7,12 +7,12 @@ import (
"github.com/dlclark/regexp2"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/adapter/provider"
"github.com/metacubex/mihomo/common/structure"
"github.com/metacubex/mihomo/common/utils"
C "github.com/metacubex/mihomo/constant"
types "github.com/metacubex/mihomo/constant/provider"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/adapter/provider"
"github.com/abyss219/mihomo/common/structure"
"github.com/abyss219/mihomo/common/utils"
C "github.com/abyss219/mihomo/constant"
types "github.com/abyss219/mihomo/constant/provider"
)
var (

View file

@ -3,8 +3,8 @@
package outboundgroup
import (
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
)
type ProxyGroup interface {

View file

@ -4,12 +4,12 @@ import (
"context"
"encoding/json"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/proxydialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
"github.com/abyss219/mihomo/log"
)
type Relay struct {

View file

@ -5,10 +5,10 @@ import (
"encoding/json"
"errors"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
)
type Selector struct {

View file

@ -8,14 +8,14 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/common/callback"
N "github.com/metacubex/mihomo/common/net"
"github.com/metacubex/mihomo/common/singledo"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/dialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/common/callback"
N "github.com/abyss219/mihomo/common/net"
"github.com/abyss219/mihomo/common/singledo"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/dialer"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/constant/provider"
)
type urlTestOption func(*URLTest)

View file

@ -3,11 +3,11 @@ package adapter
import (
"fmt"
tlsC "github.com/metacubex/mihomo/component/tls"
tlsC "github.com/abyss219/mihomo/component/tls"
"github.com/metacubex/mihomo/adapter/outbound"
"github.com/metacubex/mihomo/common/structure"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/adapter/outbound"
"github.com/abyss219/mihomo/common/structure"
C "github.com/abyss219/mihomo/constant"
)
func ParseProxy(mapping map[string]any) (C.Proxy, error) {

View file

@ -6,12 +6,12 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/metacubex/mihomo/common/batch"
"github.com/metacubex/mihomo/common/singledo"
"github.com/metacubex/mihomo/common/utils"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/batch"
"github.com/abyss219/mihomo/common/singledo"
"github.com/abyss219/mihomo/common/utils"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
"github.com/dlclark/regexp2"
)

View file

@ -6,11 +6,11 @@ import (
"fmt"
"time"
"github.com/metacubex/mihomo/common/structure"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/resource"
C "github.com/metacubex/mihomo/constant"
types "github.com/metacubex/mihomo/constant/provider"
"github.com/abyss219/mihomo/common/structure"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/resource"
C "github.com/abyss219/mihomo/constant"
types "github.com/abyss219/mihomo/constant/provider"
"github.com/dlclark/regexp2"
)

View file

@ -10,14 +10,14 @@ import (
"strings"
"time"
"github.com/metacubex/mihomo/adapter"
"github.com/metacubex/mihomo/common/convert"
"github.com/metacubex/mihomo/common/utils"
"github.com/metacubex/mihomo/component/profile/cachefile"
"github.com/metacubex/mihomo/component/resource"
C "github.com/metacubex/mihomo/constant"
types "github.com/metacubex/mihomo/constant/provider"
"github.com/metacubex/mihomo/tunnel/statistic"
"github.com/abyss219/mihomo/adapter"
"github.com/abyss219/mihomo/common/convert"
"github.com/abyss219/mihomo/common/utils"
"github.com/abyss219/mihomo/component/profile/cachefile"
"github.com/abyss219/mihomo/component/resource"
C "github.com/abyss219/mihomo/constant"
types "github.com/abyss219/mihomo/constant/provider"
"github.com/abyss219/mihomo/tunnel/statistic"
"github.com/dlclark/regexp2"
"gopkg.in/yaml.v3"

View file

@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/log"
)
type SubscriptionInfo struct {

View file

@ -1,9 +1,9 @@
package callback
import (
"github.com/metacubex/mihomo/common/buf"
N "github.com/metacubex/mihomo/common/net"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/common/buf"
N "github.com/abyss219/mihomo/common/net"
C "github.com/abyss219/mihomo/constant"
)
type firstWriteCallBackConn struct {

View file

@ -3,7 +3,7 @@ package callback
import (
"sync"
C "github.com/metacubex/mihomo/constant"
C "github.com/abyss219/mihomo/constant"
)
type closeCallbackConn struct {

View file

@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/log"
)
// ConvertsV2Ray convert V2Ray subscribe proxies data to mihomo proxies config

View file

@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/metacubex/mihomo/common/utils"
"github.com/abyss219/mihomo/common/utils"
"github.com/metacubex/randv2"
"github.com/metacubex/sing-shadowsocks/shadowimpl"

View file

@ -4,7 +4,7 @@ import (
"bufio"
"net"
"github.com/metacubex/mihomo/common/buf"
"github.com/abyss219/mihomo/common/buf"
)
var _ ExtendedConn = (*BufferedConn)(nil)

View file

@ -3,7 +3,7 @@ package net
import (
"net"
"github.com/metacubex/mihomo/common/buf"
"github.com/abyss219/mihomo/common/buf"
)
var _ ExtendedConn = (*CachedConn)(nil)

View file

@ -5,7 +5,7 @@ import (
"os"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/atomic"
"github.com/sagernet/sing/common/buf"
"github.com/sagernet/sing/common/bufio"

View file

@ -6,8 +6,8 @@ import (
"runtime"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/metacubex/mihomo/common/net/packet"
"github.com/abyss219/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/net/packet"
)
type readResult struct {

View file

@ -5,7 +5,7 @@ import (
"os"
"runtime"
"github.com/metacubex/mihomo/common/net/packet"
"github.com/abyss219/mihomo/common/net/packet"
)
type EnhancePacketConn struct {

View file

@ -4,7 +4,7 @@ import (
"os"
"runtime"
"github.com/metacubex/mihomo/common/net/packet"
"github.com/abyss219/mihomo/common/net/packet"
"github.com/sagernet/sing/common/buf"
"github.com/sagernet/sing/common/bufio"

View file

@ -4,8 +4,8 @@ import (
"net"
"sync"
"github.com/metacubex/mihomo/common/buf"
"github.com/metacubex/mihomo/common/once"
"github.com/abyss219/mihomo/common/buf"
"github.com/abyss219/mihomo/common/once"
)
type earlyConn struct {

View file

@ -1,8 +1,8 @@
package net
import (
"github.com/metacubex/mihomo/common/net/deadline"
"github.com/metacubex/mihomo/common/net/packet"
"github.com/abyss219/mihomo/common/net/deadline"
"github.com/abyss219/mihomo/common/net/packet"
)
type EnhancePacketConn = packet.EnhancePacketConn

View file

@ -3,7 +3,7 @@ package packet
import (
"net"
"github.com/metacubex/mihomo/common/pool"
"github.com/abyss219/mihomo/common/pool"
)
type WaitReadFrom interface {

View file

@ -7,7 +7,7 @@ import (
"strconv"
"syscall"
"github.com/metacubex/mihomo/common/pool"
"github.com/abyss219/mihomo/common/pool"
)
type enhanceUDPConn struct {

View file

@ -7,7 +7,7 @@ import (
"strconv"
"syscall"
"github.com/metacubex/mihomo/common/pool"
"github.com/abyss219/mihomo/common/pool"
"golang.org/x/sys/windows"
)

View file

@ -5,7 +5,7 @@ import (
"runtime"
"time"
"github.com/metacubex/mihomo/common/buf"
"github.com/abyss219/mihomo/common/buf"
)
type refConn struct {

View file

@ -12,7 +12,7 @@ package net
//
// go func() {
// // Wrapping to avoid using *net.TCPConn.(ReadFrom)
// // See also https://github.com/metacubex/mihomo/pull/1209
// // See also https://github.com/abyss219/mihomo/pull/1209
// _, err := io.Copy(WriteOnlyWriter{Writer: leftConn}, ReadOnlyReader{Reader: rightConn})
// leftConn.SetReadDeadline(time.Now())
// ch <- err

View file

@ -5,7 +5,7 @@ import (
"net"
"runtime"
"github.com/metacubex/mihomo/common/net/deadline"
"github.com/abyss219/mihomo/common/net/deadline"
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/bufio"

View file

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/atomic"
"github.com/stretchr/testify/assert"
)

View file

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/atomic"
"github.com/stretchr/testify/assert"
)

View file

@ -14,7 +14,7 @@ import (
"strings"
"sync"
C "github.com/metacubex/mihomo/constant"
C "github.com/abyss219/mihomo/constant"
)
var trustCerts []*x509.Certificate

View file

@ -1,7 +1,7 @@
package ca
import (
"github.com/metacubex/mihomo/constant/features"
"github.com/abyss219/mihomo/constant/features"
)
func init() {

View file

@ -6,7 +6,7 @@ import (
"net/netip"
"runtime"
"github.com/metacubex/mihomo/component/dialer"
"github.com/abyss219/mihomo/component/dialer"
)
func ListenDHCPClient(ctx context.Context, ifaceName string) (net.PacketConn, error) {

View file

@ -6,8 +6,8 @@ import (
"net"
"net/netip"
"github.com/metacubex/mihomo/common/nnip"
"github.com/metacubex/mihomo/component/iface"
"github.com/abyss219/mihomo/common/nnip"
"github.com/abyss219/mihomo/component/iface"
"github.com/insomniacslk/dhcp/dhcpv4"
)

View file

@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/metacubex/mihomo/component/iface"
"github.com/abyss219/mihomo/component/iface"
)
func LookupLocalAddrFromIfaceName(ifaceName string, network string, destination netip.Addr, port int) (net.Addr, error) {

View file

@ -6,7 +6,7 @@ import (
"net/netip"
"syscall"
"github.com/metacubex/mihomo/component/iface"
"github.com/abyss219/mihomo/component/iface"
"golang.org/x/sys/unix"
)

View file

@ -9,7 +9,7 @@ import (
"syscall"
"unsafe"
"github.com/metacubex/mihomo/component/iface"
"github.com/abyss219/mihomo/component/iface"
)
const (

View file

@ -12,9 +12,9 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/component/keepalive"
"github.com/metacubex/mihomo/component/resolver"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/component/keepalive"
"github.com/abyss219/mihomo/component/resolver"
"github.com/abyss219/mihomo/log"
)
const (

View file

@ -7,7 +7,7 @@ import (
"net/netip"
"sync"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/log"
)
var printMarkWarnOnce sync.Once

View file

@ -4,8 +4,8 @@ import (
"context"
"net"
"github.com/metacubex/mihomo/common/atomic"
"github.com/metacubex/mihomo/component/resolver"
"github.com/abyss219/mihomo/common/atomic"
"github.com/abyss219/mihomo/component/resolver"
)
var (

View file

@ -1,6 +1,6 @@
package dialer
import "github.com/metacubex/mihomo/constant/features"
import "github.com/abyss219/mihomo/constant/features"
func init() {
// According to MSDN, this option is available since Windows 10, 1607

View file

@ -3,7 +3,7 @@ package fakeip
import (
"net/netip"
"github.com/metacubex/mihomo/component/profile/cachefile"
"github.com/abyss219/mihomo/component/profile/cachefile"
)
type cachefileStore struct {

View file

@ -3,7 +3,7 @@ package fakeip
import (
"net/netip"
"github.com/metacubex/mihomo/common/lru"
"github.com/abyss219/mihomo/common/lru"
)
type memoryStore struct {

View file

@ -6,9 +6,9 @@ import (
"strings"
"sync"
"github.com/metacubex/mihomo/common/nnip"
"github.com/metacubex/mihomo/component/profile/cachefile"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/common/nnip"
"github.com/abyss219/mihomo/component/profile/cachefile"
C "github.com/abyss219/mihomo/constant"
)
const (

View file

@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/metacubex/mihomo/component/profile/cachefile"
"github.com/metacubex/mihomo/component/trie"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/component/profile/cachefile"
"github.com/abyss219/mihomo/component/trie"
C "github.com/abyss219/mihomo/constant"
"github.com/metacubex/bbolt"
"github.com/stretchr/testify/assert"

View file

@ -3,7 +3,7 @@ package geodata
import (
"strings"
"github.com/metacubex/mihomo/component/geodata/router"
"github.com/abyss219/mihomo/component/geodata/router"
)
type AttributeList struct {

View file

@ -3,8 +3,8 @@ package geodata
import (
"fmt"
"github.com/metacubex/mihomo/component/geodata/router"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/component/geodata/router"
C "github.com/abyss219/mihomo/constant"
)
type loader struct {

View file

@ -1,7 +1,7 @@
package geodata
import (
"github.com/metacubex/mihomo/component/geodata/router"
"github.com/abyss219/mihomo/component/geodata/router"
)
type LoaderImplementation interface {

View file

@ -9,11 +9,11 @@ import (
"sync"
"time"
"github.com/metacubex/mihomo/common/atomic"
mihomoHttp "github.com/metacubex/mihomo/component/http"
"github.com/metacubex/mihomo/component/mmdb"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/common/atomic"
mihomoHttp "github.com/abyss219/mihomo/component/http"
"github.com/abyss219/mihomo/component/mmdb"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
)
var (

View file

@ -5,9 +5,9 @@ import (
"os"
"strings"
"github.com/metacubex/mihomo/component/geodata/router"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/component/geodata/router"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
"google.golang.org/protobuf/proto"
)

View file

@ -5,8 +5,8 @@ import (
"fmt"
"runtime"
"github.com/metacubex/mihomo/component/geodata"
"github.com/metacubex/mihomo/component/geodata/router"
"github.com/abyss219/mihomo/component/geodata"
"github.com/abyss219/mihomo/component/geodata/router"
)
type memConservativeLoader struct {

View file

@ -5,9 +5,9 @@ import (
"net/netip"
"strings"
"github.com/metacubex/mihomo/component/cidr"
"github.com/metacubex/mihomo/component/geodata/strmatcher"
"github.com/metacubex/mihomo/component/trie"
"github.com/abyss219/mihomo/component/cidr"
"github.com/abyss219/mihomo/component/geodata/strmatcher"
"github.com/abyss219/mihomo/component/trie"
)
var matcherTypeMap = map[Domain_Type]strmatcher.Type{

View file

@ -2,7 +2,7 @@ syntax = "proto3";
package mihomo.component.geodata.router;
option csharp_namespace = "Mihomo.Component.Geodata.Router";
option go_package = "github.com/metacubex/mihomo/component/geodata/router";
option go_package = "github.com/abyss219/mihomo/component/geodata/router";
option java_package = "com.mihomo.component.geodata.router";
option java_multiple_files = true;

View file

@ -6,9 +6,9 @@ import (
"os"
"strings"
"github.com/metacubex/mihomo/component/geodata"
"github.com/metacubex/mihomo/component/geodata/router"
C "github.com/metacubex/mihomo/constant"
"github.com/abyss219/mihomo/component/geodata"
"github.com/abyss219/mihomo/component/geodata/router"
C "github.com/abyss219/mihomo/constant"
"google.golang.org/protobuf/proto"
)

View file

@ -5,10 +5,10 @@ import (
"fmt"
"strings"
"github.com/metacubex/mihomo/common/singleflight"
"github.com/metacubex/mihomo/component/geodata/router"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
"github.com/abyss219/mihomo/common/singleflight"
"github.com/abyss219/mihomo/component/geodata/router"
C "github.com/abyss219/mihomo/constant"
"github.com/abyss219/mihomo/log"
)
var (

View file

@ -11,9 +11,9 @@ import (
"strings"
"time"
"github.com/metacubex/mihomo/component/ca"
"github.com/metacubex/mihomo/component/dialer"
"github.com/metacubex/mihomo/listener/inner"
"github.com/abyss219/mihomo/component/ca"
"github.com/abyss219/mihomo/component/dialer"
"github.com/abyss219/mihomo/listener/inner"
)
var (

View file

@ -6,7 +6,7 @@ import (
"net/netip"
"time"
"github.com/metacubex/mihomo/common/singledo"
"github.com/abyss219/mihomo/common/singledo"
)
type Interface struct {

View file

@ -5,8 +5,8 @@ import (
"runtime"
"time"
"github.com/metacubex/mihomo/common/atomic"
"github.com/metacubex/mihomo/common/utils"
"github.com/abyss219/mihomo/common/atomic"
"github.com/abyss219/mihomo/common/utils"
)
var (

View file

@ -9,7 +9,7 @@ import (
"sync"
"syscall"
"github.com/metacubex/mihomo/constant/features"
"github.com/abyss219/mihomo/constant/features"
"golang.org/x/sys/windows"
)

Some files were not shown because too many files have changed in this diff Show more