111 Commits

Author SHA1 Message Date
Haruue Icymoon
0ba4c36bc6
Merge remote-tracking branch 'origin/master' into wip-newtun-license 2022-08-10 18:05:45 +08:00
Haruue Icymoon
720b97da67
chore: solve license conflict against tun2socks 2022-08-10 12:24:06 +08:00
Toby
a4c61e285e chore: minor log format change 2022-08-09 20:23:22 -07:00
Haruue Icymoon
f3f604b59a
refactor(tun): switch to xjasonlyu/tun2socks
fix: #306, #394, #185, #161

break changes:

we won't create or maintain the interface now, so it is user's duty to
create the tun interface, for example, with command like
  ip tuntap add dev hytun mode tun
(or maybe we can use songgao/water to keep this behavior unchanged).

correspondingly, the "address", "gateway", "mask", "dns", "persist"
options in the "tun" config have been removed.

in addition, please note xjasonlyu/tun2socks is licensed under GPLv3 and
hysteria is licensed under MIT, I don't ensure is it legal to use it as
a go mod, but there are too many requests related on it so whatever...
2022-08-10 02:43:07 +08:00
Toby
3f0953ffdd feat: rework resolver support 2022-08-06 19:58:05 -07:00
Toby
4a3e996c9a feat: update quic-go 2022-07-06 14:18:52 -07:00
Toby
5e4773a117
Merge branch 'master' into bind_to_device 2022-06-08 20:45:19 -07:00
Toby
575de280ff feat: TCP redirect implementation 2022-06-06 18:09:34 -07:00
Toby
6d8e79170e chore: code optimizations 2022-06-06 16:06:30 -07:00
hellodword
32f35894cc feat: bind socket to a particular device 2022-05-23 22:33:37 +08:00
Toby
56825c5525 fix tun timeout check 2022-04-30 12:00:13 -07:00
Toby
ba47130990 fix: stringToBps 2022-04-14 19:53:07 -07:00
Toby
fba6cf7a1c feat: server SOCKS5 outbound domain passthrough 2022-04-14 00:11:44 -07:00
Toby
53c61ac0f4 feat: new string-based speed (up/down) options 2022-04-03 20:26:25 -07:00
Toby
f98eec69f2 feat: resolve preference 2022-03-27 15:10:16 -07:00
Toby
97ef033b65 feat: server SOCKS5 outbound 2022-02-26 20:45:20 -08:00
Toby
a5e27385c8 chore: disable update check error msg 2022-02-25 17:30:42 -08:00
Toby
7466b69cce feat: re-enable PMTUD on Windows & Linux 2022-02-19 23:21:13 -08:00
Toby
d6b549cea4 fix: incorrect TProxy UDP implementation (228) 2022-02-19 17:42:02 -08:00
mritd
cb994c47a9
feat(cmd): remove warn log, disable cmd sorting
remove warn log, disable cmd sorting

Signed-off-by: mritd <mritd@linux.com>
2022-02-14 14:43:25 +08:00
mritd
870e13ed4c
feat(cmd): compatible windows double click
compatible windows double click

Signed-off-by: mritd <mritd@linux.com>
2022-02-14 14:25:52 +08:00
mritd
e1c36405c2
docs(cmd): update doc
update doc

Signed-off-by: mritd <mritd@linux.com>
2022-02-10 11:57:36 +08:00
mritd
187cc2a97d
feat(cmd): compatible with old flag format
compatible with old flag format

Signed-off-by: mritd <mritd@linux.com>
2022-02-10 11:50:44 +08:00
Toby
00ea3c9df3 chore: smaller logo 2022-02-09 19:09:31 -08:00
mritd
f6de3a8fdf
feat(cmd): run in client mode by default
run in client mode by default

Signed-off-by: mritd <mritd@linux.com>
2022-02-10 10:54:16 +08:00
mritd
d783ded672
style(cmd): update banner
update banner

Signed-off-by: mritd <mritd@linux.com>
2022-02-07 09:01:44 +08:00
mritd
01dc2beb71
feat(cmd): allow custom mmdb download url
allow custom mmdb download url

Signed-off-by: mritd <mritd@linux.com>
2022-02-06 16:54:40 +08:00
mritd
8e6a9be5f7
feat(cmd): support env
support env

Signed-off-by: mritd <mritd@linux.com>
2022-02-06 16:19:04 +08:00
mritd
fd2e0100c6
feat(cmd): use cobra
use cobra

Signed-off-by: mritd <mritd@linux.com>
2022-02-06 15:33:15 +08:00
Toby
0bb74fcd8d feat: client retry 2022-02-03 21:37:25 -08:00
Toby
b593df44b7 feat: disable quic-go PMTUD due to broken implementation 2022-02-03 20:37:08 -08:00
Toby
c28cbcfcaa feat: multi-password & cmd auth 2022-01-24 17:26:33 -08:00
Toby
48358a7642 feat: no auth or obfs warning 2022-01-24 16:00:26 -08:00
Toby
841810d6ca feat: transport refactorization 2022-01-23 17:00:02 -08:00
Toby
013e44a9c5 feat: client connect & disconnect log for server 2022-01-21 17:21:56 -08:00
Toby
89452dd9c5 feat: ACL country support 2022-01-09 18:11:52 -08:00
Toby
c3b76a5b44 feat: use fsnotify-based keypair reloading 2022-01-09 14:26:09 -08:00
Toby
069bcde2ac feat: wechat-video 2022-01-03 22:25:27 -08:00
Toby
1c06b66cdc feat: transport & obfs refactoring 2021-12-27 18:07:01 -08:00
Toby
cd8a10ffc4 chore: missing file fix 2021-12-16 14:06:34 -08:00
Toby
ccbd959007 chore: setResolver 2021-12-16 14:06:13 -08:00
Toby
c09edb6e53 feat: custom resolver 2021-12-15 21:32:26 -08:00
Toby
4872004a5c feat: experimental faketcp implementation 2021-12-15 16:46:20 -08:00
Haruue Icymoon
476e045451
feat(server): IPv6 only mode
fix #168
2021-12-09 21:04:59 +08:00
Toby
2c4bd83ae1 chore: code improvements 2021-12-08 02:02:55 -08:00
charles
cca314a938 support multiple tcp and udp relays 2021-12-05 19:12:37 +08:00
charles
af9130480f extract relay type 2021-12-05 18:55:04 +08:00
Toby
d4f5a04865 feat: reload server keypair every 10 minutes 2021-11-25 14:53:54 -08:00
Toby
4140927003 feat: customizable ALPN 2021-11-24 23:35:37 -08:00
Toby
6eb49eef12 feat: remove ACL from TPROXY & TUN 2021-11-24 23:04:34 -08:00