Commit graph

745 commits

Author SHA1 Message Date
tobyxdd
9f54aade8f hysteria 2 prototype first public release 2023-05-25 20:24:24 -07:00
tobyxdd
c0ab06e961 feat: update quic-go to v0.34.0 2023-05-07 17:19:37 -07:00
tobyxdd
bab6089f0e ci: trigger 2023-04-30 19:45:57 -07:00
tobyxdd
355a5949e2 ci: try fixing CodeQL 2023-04-30 19:39:40 -07:00
tobyxdd
8f310fb798 ci: bump everything to go 1.20 2023-04-30 19:27:26 -07:00
Haruue Icymoon
cbc29ea4e5
ci: fix yaml 2023-05-01 10:01:37 +08:00
Haruue Icymoon
12b27ea1b1
ci: bump go1.20 2023-05-01 09:55:49 +08:00
Haruue Icymoon
17c35f11f8
chore: bump gvisor & tun2socks 2023-04-29 14:50:58 +08:00
Toby
ca07cf6f18
Merge pull request #586 from apernet/dependabot/github_actions/actions/setup-go-4
chore(deps): bump actions/setup-go from 3 to 4
2023-03-17 16:21:10 -07:00
dependabot[bot]
e6b0f0b76d
chore(deps): bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 07:04:05 +00:00
tobyxdd
b94f8a1eaf docs: 1.3.4 changelog 2023-03-14 19:47:58 -07:00
Haruue Icymoon
779e962d49
fix(redirect_tcp): client got reset under i386
it seems like syscall.Syscall6(SYS_SOCKETCALL, SYS_GETSOCKOPT, ...)
always failed with EFAULT.

so we call syscall.socketcall() instead.

close: #583
2023-03-15 00:21:27 +08:00
tobyxdd
1b3b038728 chore: bump gvisor 2023-03-13 14:18:26 -07:00
tobyxdd
fb2a0da88f feat: update quic-go to v0.33.0, fix go work dependency conflicts 2023-02-26 12:45:43 -08:00
Toby
12cff70aac
Merge pull request #566 from yinyue200/removeUnusedDnsLookup
Remove unnecessary DNS queries in case of SOCKS5 outbound
2023-02-19 12:32:03 -08:00
tobyxdd
8c99fe3754 chore: bump golang.org/x/* versions 2023-02-18 21:08:09 -08:00
Toby
13d46da998
Merge pull request #572 from shadow750d6/master
Add `lazy_start` option.
2023-02-18 20:42:40 -08:00
tobyxdd
20898f2990 chore: change info string 2023-02-18 20:01:01 -08:00
Siyuan Ren
604d4fc652 Add lazy_start option.
When on, the client will not attempt to connect to the server at
startup, only when a connection is initiated.
2023-02-19 11:18:56 +08:00
tobyxdd
1d9fa029c2 fix: set serverAddrs to nil when closing an ObfsUDPHopClientPacketConn to prevent memory leaks 2023-02-14 21:30:45 -08:00
yinyue200
23f1546591 Remove unnecessary DNS queries in case of SOCKS5 outbound 2023-02-13 00:03:03 +08:00
tobyxdd
a48d6ddb7c docs: 1.3.3 changelog 2023-02-07 22:11:37 -08:00
Haruue Icymoon
30e17a40c0
fix: slices mis-reused in socks5UDPConn.ReadFrom
fix: #561
2023-02-07 23:47:11 +08:00
Haruue Icymoon
810bfd7022
fix: ipv4 addr convention in socks5_outbound
fix: #561
2023-02-07 23:30:23 +08:00
Haruue Icymoon
b4dfbaa3f2
fix: udp assoc req malformed in socks5_outbound
fix: #561
2023-02-07 16:45:13 +08:00
tobyxdd
a7c159eeb3 chore: remove routedns replace since upstream merged our PR 2023-02-05 15:21:12 -08:00
Toby
da574f6654
Merge pull request #553 from apernet/dependabot/github_actions/docker/build-push-action-4.0.0
chore(deps): bump docker/build-push-action from 3.3.0 to 4.0.0
2023-02-04 14:07:24 -08:00
tobyxdd
cb4daac18d feat: update quic-go to v0.32.0, fix dependencies 2023-02-01 23:23:12 -08:00
dependabot[bot]
2f1b266a52
chore(deps): bump docker/build-push-action from 3.3.0 to 4.0.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.3.0 to 4.0.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3.3.0...v4.0.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 06:08:50 +00:00
Toby
8a1f4e4c04
Merge pull request #548 from apernet/dependabot/github_actions/docker/build-push-action-3.3.0
chore(deps): bump docker/build-push-action from 3.2.0 to 3.3.0
2023-01-24 19:47:06 -08:00
dependabot[bot]
f0cfbb2653
chore(deps): bump docker/build-push-action from 3.2.0 to 3.3.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 06:17:20 +00:00
Toby
3e1d2a8c92
Merge pull request #547 from apernet/wip-exclusive-acme-cert
feat: make acme and cert options mutually exclusive to avoid user confusion
2023-01-15 19:36:42 -08:00
tobyxdd
517c5a4bc4 feat: make acme and cert options mutually exclusive to avoid user confusion 2023-01-15 12:14:21 -08:00
Toby
02e987e639
Merge pull request #539 from apernet/wip-traffic-counter
feat: provide a TrafficCounter interface on server, remove prometheus client dependency from core
2023-01-07 22:32:14 -08:00
tobyxdd
f7dffd027f feat: provide a TrafficCounter interface on server, remove prometheus client dependency from core 2023-01-07 13:59:30 -08:00
Haruue Icymoon
29459d768d
chore: set default value of retry_interval to 1
the prior default value 0 would make hysteria retry very fast
(2000 times / sec) when network is not ready (no default route).

user can still set it to 0 explicitly for a "flood retry" mode.
2022-12-28 23:00:38 +08:00
Haruue Icymoon
a5647379b1
Revert "feat(install_server.sh): auto detect amd64-avx"
some vps have avx in their /proc/cpuinfo but actually not support it

This reverts commit f203ab901e.
2022-12-12 13:28:22 +08:00
mritd
042f42b655
Merge pull request #531 from mritd/master
chore(go-task): supported amd64-v* & s390x
2022-12-12 12:19:58 +08:00
kovacs
568c905344 chore(go-task): supported amd64-v* && s390x
supported amd64-v* && s390x

Signed-off-by: kovacs <mritd@linux.com>
2022-12-12 12:10:08 +08:00
Haruue Icymoon
6e3a3f5388
feat(install_server.sh): customized hysteria user
it seems like some linux newbies might try to manage the cert & key by
themselves or thirdparty software (such as caddy), and complain about
hysteria start failure due to permission denied.

and it is actually really pretty hard to teach them how to edit systemd
units, or place their certs & key files into a suitable directory and
set proper permission.

which this commit, we can easily tell them just re-run the install
script with the following command:

HYSTERIA_USER=root ./install_server.sh -f

this script can also detect the correct user from the installed systemd
units, so it still works properly even if the user forgets to specify
HYSTERIA_USER= in the subsequent runs.
2022-12-11 23:27:08 +08:00
Haruue Icymoon
f203ab901e
feat(install_server.sh): auto detect amd64-avx 2022-12-11 22:04:53 +08:00
tobyxdd
dd4c17972f ci: fix build scripts to handle multi-tags 2022-12-10 18:14:17 -08:00
tobyxdd
7430f37b21 docs: 1.3.2 changelog 2022-12-10 17:07:02 -08:00
tobyxdd
14043d9b50 ci: limit release actions to run on master/main/release branches only 2022-12-10 16:53:55 -08:00
tobyxdd
9cec566384 ci: add windows/arm64 2022-12-10 16:46:26 -08:00
tobyxdd
f90dd47811 ci: add amd64-avx, armv5 & mipsle-sf builds 2022-12-10 16:03:24 -08:00
Toby
4c8871070c
Merge pull request #530 from apernet/wip-build-script
ci: update build scripts to handle microarchitectures
2022-12-10 00:40:30 -08:00
Haruue Icymoon
432a29ff9a
refactor: build.sh
+ fix command exit status check under set -e
+ fix crashes when $HY_APP_PLATFORMS contains invalid values
+ fix final binary size report error under UTF-8 locales
+ reduce global variables
2022-12-10 12:38:17 +08:00
tobyxdd
455f36734c ci: update build scripts to handle microarchitectures 2022-12-09 13:44:35 -08:00
tobyxdd
e832b4896e ci: release tagging script 2022-12-09 11:11:38 -08:00