mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-18 08:20:53 +00:00
changed metacubex/mihomo to abyss219/mihomo
This commit is contained in:
parent
336eef187b
commit
b6f46b4ee2
338 changed files with 1078 additions and 1078 deletions
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
|
@ -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.
|
||||
|
|
2
.github/genReleaseNote.sh
vendored
2
.github/genReleaseNote.sh
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -240,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
|
||||
|
@ -344,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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
16
README.md
16
README.md
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net"
|
||||
"net/netip"
|
||||
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
C "github.com/abyss219/mihomo/constant"
|
||||
)
|
||||
|
||||
var skipAuthPrefixes []netip.Prefix
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net"
|
||||
"net/netip"
|
||||
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
C "github.com/abyss219/mihomo/constant"
|
||||
)
|
||||
|
||||
var lanAllowedIPs []netip.Prefix
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
tlsC "github.com/metacubex/mihomo/component/tls"
|
||||
tlsC "github.com/abyss219/mihomo/component/tls"
|
||||
)
|
||||
|
||||
type RealityOptions struct {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/metacubex/mihomo/log"
|
||||
"github.com/abyss219/mihomo/log"
|
||||
)
|
||||
|
||||
type SubscriptionInfo struct {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -3,7 +3,7 @@ package callback
|
|||
import (
|
||||
"sync"
|
||||
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
C "github.com/abyss219/mihomo/constant"
|
||||
)
|
||||
|
||||
type closeCallbackConn struct {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bufio"
|
||||
"net"
|
||||
|
||||
"github.com/metacubex/mihomo/common/buf"
|
||||
"github.com/abyss219/mihomo/common/buf"
|
||||
)
|
||||
|
||||
var _ ExtendedConn = (*BufferedConn)(nil)
|
||||
|
|
|
@ -3,7 +3,7 @@ package net
|
|||
import (
|
||||
"net"
|
||||
|
||||
"github.com/metacubex/mihomo/common/buf"
|
||||
"github.com/abyss219/mihomo/common/buf"
|
||||
)
|
||||
|
||||
var _ ExtendedConn = (*CachedConn)(nil)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/metacubex/mihomo/common/net/packet"
|
||||
"github.com/abyss219/mihomo/common/net/packet"
|
||||
)
|
||||
|
||||
type EnhancePacketConn struct {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,7 +3,7 @@ package packet
|
|||
import (
|
||||
"net"
|
||||
|
||||
"github.com/metacubex/mihomo/common/pool"
|
||||
"github.com/abyss219/mihomo/common/pool"
|
||||
)
|
||||
|
||||
type WaitReadFrom interface {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strconv"
|
||||
"syscall"
|
||||
|
||||
"github.com/metacubex/mihomo/common/pool"
|
||||
"github.com/abyss219/mihomo/common/pool"
|
||||
)
|
||||
|
||||
type enhanceUDPConn struct {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strconv"
|
||||
"syscall"
|
||||
|
||||
"github.com/metacubex/mihomo/common/pool"
|
||||
"github.com/abyss219/mihomo/common/pool"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/metacubex/mihomo/common/buf"
|
||||
"github.com/abyss219/mihomo/common/buf"
|
||||
)
|
||||
|
||||
type refConn struct {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/metacubex/mihomo/common/atomic"
|
||||
"github.com/abyss219/mihomo/common/atomic"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/metacubex/mihomo/common/atomic"
|
||||
"github.com/abyss219/mihomo/common/atomic"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
C "github.com/abyss219/mihomo/constant"
|
||||
)
|
||||
|
||||
var trustCerts []*x509.Certificate
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package ca
|
||||
|
||||
import (
|
||||
"github.com/metacubex/mihomo/constant/features"
|
||||
"github.com/abyss219/mihomo/constant/features"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/metacubex/mihomo/component/iface"
|
||||
"github.com/abyss219/mihomo/component/iface"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/netip"
|
||||
"sync"
|
||||
|
||||
"github.com/metacubex/mihomo/log"
|
||||
"github.com/abyss219/mihomo/log"
|
||||
)
|
||||
|
||||
var printMarkWarnOnce sync.Once
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -3,7 +3,7 @@ package fakeip
|
|||
import (
|
||||
"net/netip"
|
||||
|
||||
"github.com/metacubex/mihomo/common/lru"
|
||||
"github.com/abyss219/mihomo/common/lru"
|
||||
)
|
||||
|
||||
type memoryStore struct {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package geodata
|
||||
|
||||
import (
|
||||
"github.com/metacubex/mihomo/component/geodata/router"
|
||||
"github.com/abyss219/mihomo/component/geodata/router"
|
||||
)
|
||||
|
||||
type LoaderImplementation interface {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/netip"
|
||||
"time"
|
||||
|
||||
"github.com/metacubex/mihomo/common/singledo"
|
||||
"github.com/abyss219/mihomo/common/singledo"
|
||||
)
|
||||
|
||||
type Interface struct {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"sync"
|
||||
"syscall"
|
||||
|
||||
"github.com/metacubex/mihomo/constant/features"
|
||||
"github.com/abyss219/mihomo/constant/features"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/metacubex/mihomo/common/callback"
|
||||
"github.com/metacubex/mihomo/component/iface"
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
"github.com/metacubex/mihomo/constant/features"
|
||||
"github.com/abyss219/mihomo/common/callback"
|
||||
"github.com/abyss219/mihomo/component/iface"
|
||||
C "github.com/abyss219/mihomo/constant"
|
||||
"github.com/abyss219/mihomo/constant/features"
|
||||
|
||||
"github.com/puzpuzpuz/xsync/v3"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package mmdb
|
|||
import (
|
||||
"sync"
|
||||
|
||||
mihomoOnce "github.com/metacubex/mihomo/common/once"
|
||||
C "github.com/metacubex/mihomo/constant"
|
||||
"github.com/metacubex/mihomo/log"
|
||||
mihomoOnce "github.com/abyss219/mihomo/common/once"
|
||||
C "github.com/abyss219/mihomo/constant"
|
||||
"github.com/abyss219/mihomo/log"
|
||||
|
||||
"github.com/oschwald/maxminddb-golang"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/metacubex/mihomo/log"
|
||||
"github.com/abyss219/mihomo/log"
|
||||
"github.com/oschwald/maxminddb-golang"
|
||||
)
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue