diff --git a/.github/ISSUE_TEMPLATE/en_feature_request.yaml b/.github/ISSUE_TEMPLATE/en_feature_request.yaml index 9180f8b..eed08ac 100644 --- a/.github/ISSUE_TEMPLATE/en_feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/en_feature_request.yaml @@ -6,7 +6,7 @@ body: id: header attributes: value: | - Before creating an issue, please take a look at [Advanced Usage](https://github.com/HyNetwork/hysteria/wiki/Advanced-Usage) & existing issues to make sure it does not exist or has already been proposed. + Before creating an issue, please take a look at [Advanced Usage](https://hysteria.network/docs/advanced-usage/) & existing issues to make sure it does not exist or has already been proposed. You can also join our Telegram group or use Discussion to share your ideas with the community. diff --git a/.github/ISSUE_TEMPLATE/en_newbie.yml b/.github/ISSUE_TEMPLATE/en_newbie.yml index c435772..ca41537 100644 --- a/.github/ISSUE_TEMPLATE/en_newbie.yml +++ b/.github/ISSUE_TEMPLATE/en_newbie.yml @@ -6,9 +6,9 @@ body: id: header attributes: value: | - Before creating an issue, please take a look at [Quick Start Guide](https://github.com/HyNetwork/hysteria/wiki/Quick-Start) and [Advanced Usage](https://github.com/HyNetwork/hysteria/wiki/Advanced-Usage). + Before creating an issue, please take a look at [Quick Start Guide](https://hysteria.network/docs/quick-start/) and [Advanced Usage](https://hysteria.network/docs/advanced-usage/). - You can find solutions to common problems in [Common Problems](https://github.com/HyNetwork/hysteria/wiki/Common-Problems). Anything already covered there will be closed without reply. + You can find solutions to common problems in [Common Problems](https://hysteria.network/docs/common-problems/). Anything already covered there will be closed without reply. You can [join our Telegram group](https://t.me/hysteria_github) our use Discussion for community support. diff --git a/.github/ISSUE_TEMPLATE/zh_feature_request.yaml b/.github/ISSUE_TEMPLATE/zh_feature_request.yaml index ba2a1b3..b5fc1ef 100644 --- a/.github/ISSUE_TEMPLATE/zh_feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/zh_feature_request.yaml @@ -6,7 +6,7 @@ body: id: header attributes: value: | - 在创建 Issue 之前, 请花几分钟阅读一下我们 Wiki 上的 [高级用法](https://github.com/HyNetwork/hysteria/wiki/%E9%AB%98%E7%BA%A7%E7%94%A8%E6%B3%95)。 确认你想要的功能是否已经被实现。 + 在创建 Issue 之前, 请花几分钟阅读一下我们 Wiki 上的 [高级用法](https://hysteria.network/zh/docs/advanced-usage/)。 确认你想要的功能是否已经被实现。 如果你有什么好的想法, 欢迎 [加入 Hysteria 的 Telegram 群组](https://t.me/hysteria_github) 参与功能上的讨论。 diff --git a/.github/ISSUE_TEMPLATE/zh_newbie.yml b/.github/ISSUE_TEMPLATE/zh_newbie.yml index 58c6008..274cb8d 100644 --- a/.github/ISSUE_TEMPLATE/zh_newbie.yml +++ b/.github/ISSUE_TEMPLATE/zh_newbie.yml @@ -6,11 +6,11 @@ body: id: header attributes: value: | - 在创建 Issue 之前, 请花几分钟阅读一下我们 Wiki 上的 [配置指南](https://github.com/HyNetwork/hysteria/wiki/%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8), + 在创建 Issue 之前, 请花几分钟阅读一下我们 Wiki 上的 [配置指南](https://hysteria.network/zh/docs/quick-start/), - 最新的配置参数在 [高级用法](https://github.com/HyNetwork/hysteria/wiki/%E9%AB%98%E7%BA%A7%E7%94%A8%E6%B3%95) 里有详细的说明。 + 最新的配置参数在 [高级用法](https://hysteria.network/zh/docs/advanced-usage/) 里有详细的说明。 - 您可能遇到的绝大部分问题都能在 [常见问题](https://github.com/HyNetwork/hysteria/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) 中找到解决方案。 + 您可能遇到的绝大部分问题都能在 [常见问题](https://hysteria.network/zh/docs/common-problems/) 中找到解决方案。 任何已有解决方案的 Issue 将会被直接关闭, 感谢理解。 diff --git a/Dockerfile b/Dockerfile index 822ac3f..cea640e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,9 @@ ARG GOPROXY="" ENV GOPROXY ${GOPROXY} -COPY . /go/src/github.com/hynetwork/hysteria +COPY . /go/src/github.com/apernet/hysteria -WORKDIR /go/src/github.com/hynetwork/hysteria +WORKDIR /go/src/github.com/apernet/hysteria RUN set -ex \ && apk add git build-base bash \ diff --git a/README.md b/README.md index 49cc6f9..c887f64 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,17 @@ [2]: LICENSE.md -[3]: https://img.shields.io/github/v/release/HyNetwork/hysteria?style=flat-square +[3]: https://img.shields.io/github/v/release/apernet/hysteria?style=flat-square -[4]: https://github.com/HyNetwork/hysteria/releases +[4]: https://github.com/apernet/hysteria/releases [5]: https://img.shields.io/badge/chat-Telegram-blue?style=flat-square [6]: https://t.me/hysteria_github -[7]: https://img.shields.io/github/discussions/HyNetwork/hysteria?style=flat-square +[7]: https://img.shields.io/github/discussions/apernet/hysteria?style=flat-square -[8]: https://github.com/HyNetwork/hysteria/discussions +[8]: https://github.com/apernet/hysteria/discussions ![AperNet](docs/logos/AperNetLogo.png) diff --git a/cmd/auth/funcs.go b/cmd/auth/funcs.go index 695af67..04e4693 100644 --- a/cmd/auth/funcs.go +++ b/cmd/auth/funcs.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" "github.com/yosuke-furukawa/json5/encoding/json5" ) diff --git a/cmd/client.go b/cmd/client.go index d35f3b3..4504c94 100644 --- a/cmd/client.go +++ b/cmd/client.go @@ -11,20 +11,20 @@ import ( "os" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns" + "github.com/apernet/hysteria/pkg/transport/pktconns" - "github.com/HyNetwork/hysteria/pkg/pmtud" - "github.com/HyNetwork/hysteria/pkg/redirect" + "github.com/apernet/hysteria/pkg/pmtud" + "github.com/apernet/hysteria/pkg/redirect" "github.com/oschwald/geoip2-golang" "github.com/yosuke-furukawa/json5/encoding/json5" - "github.com/HyNetwork/hysteria/pkg/acl" - "github.com/HyNetwork/hysteria/pkg/core" - hyHTTP "github.com/HyNetwork/hysteria/pkg/http" - "github.com/HyNetwork/hysteria/pkg/relay" - "github.com/HyNetwork/hysteria/pkg/socks5" - "github.com/HyNetwork/hysteria/pkg/tproxy" - "github.com/HyNetwork/hysteria/pkg/transport" + "github.com/apernet/hysteria/pkg/acl" + "github.com/apernet/hysteria/pkg/core" + hyHTTP "github.com/apernet/hysteria/pkg/http" + "github.com/apernet/hysteria/pkg/relay" + "github.com/apernet/hysteria/pkg/socks5" + "github.com/apernet/hysteria/pkg/tproxy" + "github.com/apernet/hysteria/pkg/transport" "github.com/lucas-clemente/quic-go" "github.com/sirupsen/logrus" ) diff --git a/cmd/client_gpl.go b/cmd/client_gpl.go index 7c87ee1..cf82082 100644 --- a/cmd/client_gpl.go +++ b/cmd/client_gpl.go @@ -12,8 +12,8 @@ import ( "github.com/docker/go-units" "gvisor.dev/gvisor/pkg/tcpip/transport/tcp" - "github.com/HyNetwork/hysteria/pkg/core" - "github.com/HyNetwork/hysteria/pkg/tun" + "github.com/apernet/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/tun" "github.com/sirupsen/logrus" ) diff --git a/cmd/client_nongpl.go b/cmd/client_nongpl.go index b9a2d2f..7b4e5bb 100644 --- a/cmd/client_nongpl.go +++ b/cmd/client_nongpl.go @@ -4,7 +4,7 @@ package main import ( - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" "github.com/sirupsen/logrus" ) diff --git a/cmd/main.go b/cmd/main.go index ab0c0c6..512b85c 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -24,7 +24,7 @@ const ( ` desc = "A TCP/UDP relay & SOCKS5/HTTP proxy tool optimized for poor network environments" - authors = "HyNetwork " + authors = "Aperture Internet Laboratory " ) var ( diff --git a/cmd/resolver.go b/cmd/resolver.go index 89ad58f..a4dacb4 100644 --- a/cmd/resolver.go +++ b/cmd/resolver.go @@ -7,7 +7,7 @@ import ( "net/url" "strings" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/utils" rdns "github.com/folbricht/routedns" ) diff --git a/cmd/server.go b/cmd/server.go index b9976aa..9b4401b 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -7,14 +7,14 @@ import ( "net/http" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns" + "github.com/apernet/hysteria/pkg/transport/pktconns" - "github.com/HyNetwork/hysteria/cmd/auth" - "github.com/HyNetwork/hysteria/pkg/acl" - "github.com/HyNetwork/hysteria/pkg/core" - "github.com/HyNetwork/hysteria/pkg/pmtud" - "github.com/HyNetwork/hysteria/pkg/sockopt" - "github.com/HyNetwork/hysteria/pkg/transport" + "github.com/apernet/hysteria/cmd/auth" + "github.com/apernet/hysteria/pkg/acl" + "github.com/apernet/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/pmtud" + "github.com/apernet/hysteria/pkg/sockopt" + "github.com/apernet/hysteria/pkg/transport" "github.com/lucas-clemente/quic-go" "github.com/oschwald/geoip2-golang" "github.com/prometheus/client_golang/prometheus" diff --git a/cmd/update.go b/cmd/update.go index 3284e80..cd29595 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -10,7 +10,7 @@ import ( "github.com/sirupsen/logrus" ) -const githubAPIURL = "https://api.github.com/repos/HyNetwork/hysteria/releases/latest" +const githubAPIURL = "https://api.github.com/repos/apernet/hysteria/releases/latest" type releaseInfo struct { URL string `json:"html_url"` diff --git a/go.mod b/go.mod index f5afd2d..25594e5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/HyNetwork/hysteria +module github.com/apernet/hysteria go 1.17 @@ -89,6 +89,6 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/lucas-clemente/quic-go => github.com/HyNetwork/quic-go v0.30.1-0.20221105180419-83715d7269a8 +replace github.com/lucas-clemente/quic-go => github.com/apernet/quic-go v0.30.1-0.20221105180419-83715d7269a8 -replace github.com/LiamHaworth/go-tproxy => github.com/HyNetwork/go-tproxy v0.0.0-20221025153553-ed04a2935f88 +replace github.com/LiamHaworth/go-tproxy => github.com/apernet/go-tproxy v0.0.0-20221025153553-ed04a2935f88 diff --git a/go.sum b/go.sum index 51ab246..0527481 100644 --- a/go.sum +++ b/go.sum @@ -201,10 +201,6 @@ github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbi github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/Dreamacro/go-shadowsocks2 v0.1.7/go.mod h1:8p5G4cAj5ZlXwUR+Ww63gfSikr8kvw8uw3TDwLAJpUc= -github.com/HyNetwork/go-tproxy v0.0.0-20221025153553-ed04a2935f88 h1:gZbrSMb8ojmSGxC0C4L3gFwgYFf1xvAnU2gCyDmsbSA= -github.com/HyNetwork/go-tproxy v0.0.0-20221025153553-ed04a2935f88/go.mod h1:u7+cv3PYlgsz2jDM/qi/zl17zi03OO78Bhe5nlLOrVc= -github.com/HyNetwork/quic-go v0.30.1-0.20221105180419-83715d7269a8 h1:FBo40lMrk1bZZzJRJx8U+bQUPhLDGTUJ/Q5NV5BbO4Q= -github.com/HyNetwork/quic-go v0.30.1-0.20221105180419-83715d7269a8/go.mod h1:ssOrRsOmdxa768Wr78vnh2B8JozgLsMzG/g+0qEC7uk= github.com/Microsoft/go-winio v0.4.16-0.20201130162521-d1ffc52c7331/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= github.com/Microsoft/go-winio v0.5.1/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= github.com/Microsoft/hcsshim v0.8.14/go.mod h1:NtVKoYxQuTLx6gEq0L96c9Ju4JbRJ4nY2ow3VK6a9Lg= @@ -223,6 +219,10 @@ github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYU github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antonfisher/nested-logrus-formatter v1.3.1 h1:NFJIr+pzwv5QLHTPyKz9UMEoHck02Q9L0FP13b/xSbQ= github.com/antonfisher/nested-logrus-formatter v1.3.1/go.mod h1:6WTfyWFkBc9+zyBaKIqRrg/KwMqBbodBjgbHjDz7zjA= +github.com/apernet/go-tproxy v0.0.0-20221025153553-ed04a2935f88 h1:YNsl7PMiU9x/0CleMHJ7GUdS8y1aRTFwTxdSmLLEijQ= +github.com/apernet/go-tproxy v0.0.0-20221025153553-ed04a2935f88/go.mod h1:uxH+nFzlJug5OHjPYmzKwvVVb9wOToeGuLNVeerwWtc= +github.com/apernet/quic-go v0.30.1-0.20221105180419-83715d7269a8 h1:gDR1F0nnzC76sww7NeNl81n4cXlkHIzAbxVjteIGKLw= +github.com/apernet/quic-go v0.30.1-0.20221105180419-83715d7269a8/go.mod h1:ssOrRsOmdxa768Wr78vnh2B8JozgLsMzG/g+0qEC7uk= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= diff --git a/install_server.sh b/install_server.sh index a0b6c14..c2f9723 100644 --- a/install_server.sh +++ b/install_server.sh @@ -169,7 +169,7 @@ get_version() { fi # Get Hysteria release version number TMP_FILE="$(mktemp)" - if ! curl -x "${PROXY}" -sS -H "Accept: application/vnd.github.v3+json" -o "$TMP_FILE" 'https://api.github.com/repos/HyNetwork/hysteria/releases/latest'; then + if ! curl -x "${PROXY}" -sS -H "Accept: application/vnd.github.v3+json" -o "$TMP_FILE" 'https://api.github.com/repos/apernet/hysteria/releases/latest'; then "rm" "$TMP_FILE" echo 'error: Failed to get release list, please check your network.' exit 1 @@ -211,7 +211,7 @@ get_version() { } download_hysteria() { - DOWNLOAD_LINK="https://github.com/HyNetwork/hysteria/releases/download/$RELEASE_VERSION/hysteria-linux-$MACHINE" + DOWNLOAD_LINK="https://github.com/apernet/hysteria/releases/download/$RELEASE_VERSION/hysteria-linux-$MACHINE" echo "Downloading Hysteria archive: $DOWNLOAD_LINK" if ! curl -x "${PROXY}" -R -H 'Cache-Control: no-cache' -o "$BIN_FILE" "$DOWNLOAD_LINK"; then echo 'error: Download failed! Please check your network or try again.' @@ -257,7 +257,7 @@ install_startup_service_file() { [ $? -eq 0 ] && echo "User hysteria has been added." echo "[Unit] Description=Hysteria, a feature-packed network utility optimized for networks of poor quality -Documentation=https://github.com/HyNetwork/hysteria/wiki +Documentation=https://hysteria.network/ After=network.target [Service] @@ -276,7 +276,7 @@ RestartSec=5 WantedBy=multi-user.target" > /lib/systemd/system/hysteria-server.service echo "[Unit] Description=Hysteria, a feature-packed network utility optimized for networks of poor quality -Documentation=https://github.com/HyNetwork/hysteria/wiki +Documentation=https://hysteria.network/ After=network.target [Service] diff --git a/pkg/acl/engine.go b/pkg/acl/engine.go index 72fecf9..f91d108 100644 --- a/pkg/acl/engine.go +++ b/pkg/acl/engine.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/utils" lru "github.com/hashicorp/golang-lru" "github.com/oschwald/geoip2-golang" ) diff --git a/pkg/core/client.go b/pkg/core/client.go index 7b16440..ed51023 100644 --- a/pkg/core/client.go +++ b/pkg/core/client.go @@ -12,12 +12,12 @@ import ( "sync" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns" + "github.com/apernet/hysteria/pkg/transport/pktconns" - "github.com/HyNetwork/hysteria/pkg/congestion" + "github.com/apernet/hysteria/pkg/congestion" - "github.com/HyNetwork/hysteria/pkg/pmtud" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/pmtud" + "github.com/apernet/hysteria/pkg/utils" "github.com/lucas-clemente/quic-go" "github.com/lunixbochs/struc" ) diff --git a/pkg/core/server.go b/pkg/core/server.go index c35ac35..8b30952 100644 --- a/pkg/core/server.go +++ b/pkg/core/server.go @@ -7,11 +7,11 @@ import ( "fmt" "net" - "github.com/HyNetwork/hysteria/pkg/congestion" + "github.com/apernet/hysteria/pkg/congestion" - "github.com/HyNetwork/hysteria/pkg/acl" - "github.com/HyNetwork/hysteria/pkg/pmtud" - "github.com/HyNetwork/hysteria/pkg/transport" + "github.com/apernet/hysteria/pkg/acl" + "github.com/apernet/hysteria/pkg/pmtud" + "github.com/apernet/hysteria/pkg/transport" "github.com/lucas-clemente/quic-go" "github.com/lunixbochs/struc" "github.com/prometheus/client_golang/prometheus" diff --git a/pkg/core/server_client.go b/pkg/core/server_client.go index 6f9639c..893c7aa 100644 --- a/pkg/core/server_client.go +++ b/pkg/core/server_client.go @@ -9,9 +9,9 @@ import ( "strconv" "sync" - "github.com/HyNetwork/hysteria/pkg/acl" - "github.com/HyNetwork/hysteria/pkg/transport" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/acl" + "github.com/apernet/hysteria/pkg/transport" + "github.com/apernet/hysteria/pkg/utils" "github.com/lucas-clemente/quic-go" "github.com/lunixbochs/struc" "github.com/prometheus/client_golang/prometheus" diff --git a/pkg/http/server.go b/pkg/http/server.go index d2f1095..fe19e4e 100644 --- a/pkg/http/server.go +++ b/pkg/http/server.go @@ -7,13 +7,13 @@ import ( "net/http" "time" - "github.com/HyNetwork/hysteria/pkg/transport" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/transport" + "github.com/apernet/hysteria/pkg/utils" "github.com/elazarl/goproxy/ext/auth" - "github.com/HyNetwork/hysteria/pkg/acl" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/acl" + "github.com/apernet/hysteria/pkg/core" "github.com/elazarl/goproxy" ) diff --git a/pkg/redirect/tcp_linux.go b/pkg/redirect/tcp_linux.go index 8d43185..7fcef90 100644 --- a/pkg/redirect/tcp_linux.go +++ b/pkg/redirect/tcp_linux.go @@ -7,8 +7,8 @@ import ( "syscall" "time" - "github.com/HyNetwork/hysteria/pkg/core" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/utils" ) type TCPRedirect struct { diff --git a/pkg/redirect/tcp_stub.go b/pkg/redirect/tcp_stub.go index b712b8e..d7bdd99 100644 --- a/pkg/redirect/tcp_stub.go +++ b/pkg/redirect/tcp_stub.go @@ -8,7 +8,7 @@ import ( "net" "time" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" ) type TCPRedirect struct{} diff --git a/pkg/relay/tcp.go b/pkg/relay/tcp.go index f6953e5..1852e1c 100644 --- a/pkg/relay/tcp.go +++ b/pkg/relay/tcp.go @@ -4,8 +4,8 @@ import ( "net" "time" - "github.com/HyNetwork/hysteria/pkg/core" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/utils" ) type TCPRelay struct { diff --git a/pkg/relay/udp.go b/pkg/relay/udp.go index f02d227..8941b50 100644 --- a/pkg/relay/udp.go +++ b/pkg/relay/udp.go @@ -7,7 +7,7 @@ import ( "sync/atomic" "time" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" ) const udpBufferSize = 4096 diff --git a/pkg/socks5/server.go b/pkg/socks5/server.go index 95c8d10..575762f 100644 --- a/pkg/socks5/server.go +++ b/pkg/socks5/server.go @@ -6,10 +6,10 @@ import ( "fmt" "strconv" - "github.com/HyNetwork/hysteria/pkg/acl" - "github.com/HyNetwork/hysteria/pkg/core" - "github.com/HyNetwork/hysteria/pkg/transport" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/acl" + "github.com/apernet/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/transport" + "github.com/apernet/hysteria/pkg/utils" ) import ( diff --git a/pkg/tproxy/tcp_linux.go b/pkg/tproxy/tcp_linux.go index f8e2674..2c8f822 100644 --- a/pkg/tproxy/tcp_linux.go +++ b/pkg/tproxy/tcp_linux.go @@ -4,9 +4,9 @@ import ( "net" "time" - "github.com/HyNetwork/hysteria/pkg/core" - "github.com/HyNetwork/hysteria/pkg/utils" "github.com/LiamHaworth/go-tproxy" + "github.com/apernet/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/utils" ) type TCPTProxy struct { diff --git a/pkg/tproxy/tcp_stub.go b/pkg/tproxy/tcp_stub.go index f096bfc..a4059b7 100644 --- a/pkg/tproxy/tcp_stub.go +++ b/pkg/tproxy/tcp_stub.go @@ -8,7 +8,7 @@ import ( "net" "time" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" ) type TCPTProxy struct{} diff --git a/pkg/tproxy/udp_linux.go b/pkg/tproxy/udp_linux.go index 1c07f49..daa6f7f 100644 --- a/pkg/tproxy/udp_linux.go +++ b/pkg/tproxy/udp_linux.go @@ -4,8 +4,8 @@ import ( "net" "time" - "github.com/HyNetwork/hysteria/pkg/core" "github.com/LiamHaworth/go-tproxy" + "github.com/apernet/hysteria/pkg/core" ) const udpBufferSize = 4096 diff --git a/pkg/tproxy/udp_stub.go b/pkg/tproxy/udp_stub.go index be34f0b..c884953 100644 --- a/pkg/tproxy/udp_stub.go +++ b/pkg/tproxy/udp_stub.go @@ -8,7 +8,7 @@ import ( "net" "time" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" ) var ErrTimeout = errors.New("inactivity timeout") diff --git a/pkg/transport/pktconns/faketcp/obfs.go b/pkg/transport/pktconns/faketcp/obfs.go index 608503e..28df79d 100644 --- a/pkg/transport/pktconns/faketcp/obfs.go +++ b/pkg/transport/pktconns/faketcp/obfs.go @@ -6,7 +6,7 @@ import ( "syscall" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/obfs" + "github.com/apernet/hysteria/pkg/transport/pktconns/obfs" ) const udpBufferSize = 4096 diff --git a/pkg/transport/pktconns/funcs.go b/pkg/transport/pktconns/funcs.go index 0a30597..6e3491f 100644 --- a/pkg/transport/pktconns/funcs.go +++ b/pkg/transport/pktconns/funcs.go @@ -5,10 +5,10 @@ import ( "strings" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/faketcp" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/obfs" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/udp" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/wechat" + "github.com/apernet/hysteria/pkg/transport/pktconns/faketcp" + "github.com/apernet/hysteria/pkg/transport/pktconns/obfs" + "github.com/apernet/hysteria/pkg/transport/pktconns/udp" + "github.com/apernet/hysteria/pkg/transport/pktconns/wechat" ) type ( diff --git a/pkg/transport/pktconns/udp/hop.go b/pkg/transport/pktconns/udp/hop.go index 7e3d0cd..ce46c61 100644 --- a/pkg/transport/pktconns/udp/hop.go +++ b/pkg/transport/pktconns/udp/hop.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/obfs" + "github.com/apernet/hysteria/pkg/transport/pktconns/obfs" ) const ( diff --git a/pkg/transport/pktconns/udp/obfs.go b/pkg/transport/pktconns/udp/obfs.go index d985e40..64847c3 100644 --- a/pkg/transport/pktconns/udp/obfs.go +++ b/pkg/transport/pktconns/udp/obfs.go @@ -7,7 +7,7 @@ import ( "syscall" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/obfs" + "github.com/apernet/hysteria/pkg/transport/pktconns/obfs" ) const udpBufferSize = 4096 diff --git a/pkg/transport/pktconns/wechat/obfs.go b/pkg/transport/pktconns/wechat/obfs.go index 2714b20..20bec2e 100644 --- a/pkg/transport/pktconns/wechat/obfs.go +++ b/pkg/transport/pktconns/wechat/obfs.go @@ -9,7 +9,7 @@ import ( "syscall" "time" - "github.com/HyNetwork/hysteria/pkg/transport/pktconns/obfs" + "github.com/apernet/hysteria/pkg/transport/pktconns/obfs" ) const udpBufferSize = 4096 diff --git a/pkg/transport/server.go b/pkg/transport/server.go index 6ce8450..b32f7e9 100644 --- a/pkg/transport/server.go +++ b/pkg/transport/server.go @@ -5,8 +5,8 @@ import ( "strconv" "time" - "github.com/HyNetwork/hysteria/pkg/sockopt" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/sockopt" + "github.com/apernet/hysteria/pkg/utils" ) type ServerTransport struct { diff --git a/pkg/tun/server.go b/pkg/tun/server.go index 3ce46f1..337713c 100644 --- a/pkg/tun/server.go +++ b/pkg/tun/server.go @@ -14,7 +14,7 @@ import ( "github.com/xjasonlyu/tun2socks/v2/core/option" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" "github.com/sirupsen/logrus" t2score "github.com/xjasonlyu/tun2socks/v2/core" "github.com/xjasonlyu/tun2socks/v2/core/adapter" diff --git a/pkg/tun/tcp.go b/pkg/tun/tcp.go index e3ba337..2b09ab8 100644 --- a/pkg/tun/tcp.go +++ b/pkg/tun/tcp.go @@ -6,7 +6,7 @@ package tun import ( "net" - "github.com/HyNetwork/hysteria/pkg/utils" + "github.com/apernet/hysteria/pkg/utils" "github.com/xjasonlyu/tun2socks/v2/core/adapter" ) diff --git a/pkg/tun/udp.go b/pkg/tun/udp.go index f824699..d81309a 100644 --- a/pkg/tun/udp.go +++ b/pkg/tun/udp.go @@ -9,7 +9,7 @@ import ( "strconv" "time" - "github.com/HyNetwork/hysteria/pkg/core" + "github.com/apernet/hysteria/pkg/core" "github.com/xjasonlyu/tun2socks/v2/core/adapter" )