chore: update module name

This commit is contained in:
Toby 2022-11-16 22:57:35 -08:00
parent 4a0b66e9b3
commit 7ce4bf7dbe
40 changed files with 92 additions and 92 deletions

View file

@ -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.

View file

@ -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.

View file

@ -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) 参与功能上的讨论。

View file

@ -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 将会被直接关闭, 感谢理解。

View file

@ -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 \

View file

@ -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)

View file

@ -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"
)

View file

@ -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"
)

View file

@ -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"
)

View file

@ -4,7 +4,7 @@
package main
import (
"github.com/HyNetwork/hysteria/pkg/core"
"github.com/apernet/hysteria/pkg/core"
"github.com/sirupsen/logrus"
)

View file

@ -24,7 +24,7 @@ const (
`
desc = "A TCP/UDP relay & SOCKS5/HTTP proxy tool optimized for poor network environments"
authors = "HyNetwork <https://github.com/HyNetwork>"
authors = "Aperture Internet Laboratory <https://github.com/apernet>"
)
var (

View file

@ -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"
)

View file

@ -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"

View file

@ -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"`

6
go.mod
View file

@ -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

8
go.sum
View file

@ -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=

View file

@ -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]

View file

@ -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"
)

View file

@ -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"
)

View file

@ -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"

View file

@ -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"

View file

@ -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"
)

View file

@ -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 {

View file

@ -8,7 +8,7 @@ import (
"net"
"time"
"github.com/HyNetwork/hysteria/pkg/core"
"github.com/apernet/hysteria/pkg/core"
)
type TCPRedirect struct{}

View file

@ -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 {

View file

@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"
"github.com/HyNetwork/hysteria/pkg/core"
"github.com/apernet/hysteria/pkg/core"
)
const udpBufferSize = 4096

View file

@ -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 (

View file

@ -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 {

View file

@ -8,7 +8,7 @@ import (
"net"
"time"
"github.com/HyNetwork/hysteria/pkg/core"
"github.com/apernet/hysteria/pkg/core"
)
type TCPTProxy struct{}

View file

@ -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

View file

@ -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")

View file

@ -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

View file

@ -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 (

View file

@ -8,7 +8,7 @@ import (
"sync"
"time"
"github.com/HyNetwork/hysteria/pkg/transport/pktconns/obfs"
"github.com/apernet/hysteria/pkg/transport/pktconns/obfs"
)
const (

View file

@ -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

View file

@ -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

View file

@ -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 {

View file

@ -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"

View file

@ -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"
)

View file

@ -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"
)