Compare commits

...
690 Commits
Author SHA1 Message Date
GitHub Action 807d41f57b Android: patch 2023-11-03 05:59:14 +00:00
wwqgtxx 8c3557e96b chore: support v2ray http upgrade server too 2023-11-03 13:58:53 +08:00
wwqgtxx 228990472d fix: avoid tls panic 2023-11-03 12:04:22 +08:00
wwqgtxx 09e7866a5c fix: gvisor panic 2023-11-03 11:50:25 +08:00
wwqgtxx 665ba7f9f1 chore: do websocket client upgrade directly instead of gobwas/ws 2023-11-03 11:50:25 +08:00
wwqgtxx ee3038d5e4 chore: add SetupContextForConn for common/net 2023-11-03 11:50:25 +08:00
wwqgtxx 885ee7a820 fix: v2ray http upgrade Hosts header not working 2023-11-03 11:50:25 +08:00
Steve Johnson ef303b11f2 action: trigger CMFA PR update in every commit 2023-11-02 16:01:35 +08:00
wwqgtxx a82ce85707 chore: add route exclude support 2023-11-02 11:37:40 +08:00
wwqgtxx 5bfe7ba169 chore: better tls handshake 2023-11-02 11:22:01 +08:00
wwqgtxx ceac5bfaa4 feat: add v2ray-http-upgrade support 2023-11-02 11:11:35 +08:00
wwqgtxx b0638cfc49 chore: better bufio.Reader warp 2023-11-02 11:11:35 +08:00
Skyxim 96220aa8ea feat: cancel RULE-SET nested SUB-RULE restrictions 2023-10-31 11:10:38 +00:00
HolgerHuo 8ff476a3a1 fix: remote logic rules cannot be parsed (#837) 2023-10-31 19:07:01 +08:00
Steve Johnson 261b6e8dce action: small fix to cmfa core-update trigger 2023-10-30 20:00:15 +08:00
xishang0128 2b9141e0e5 chore: geo link replaced with github 2023-10-30 19:46:56 +08:00
xishang0128 55255faa52 chore: modify configuration fields 2023-10-27 17:49:12 +08:00
Steve Johnson d42e3f74ad action: add question issue guidance 2023-10-26 19:08:42 +08:00
wwqgtxx 81a8a63861 build: more go120 build 2023-10-26 11:39:54 +08:00
wwqgtxx c3a61e2db5 build: add go120 build for win7/8.1 2023-10-26 11:09:19 +08:00
wwqgtxx bffe47a974 chore: netip.Prefix should not using pointer 2023-10-26 11:02:53 +08:00
wwqgtxx 4314b37d04 fix: dhcp not working on windows 2023-10-26 10:27:38 +08:00
wwqgtxx cf93f69f40 chore: cleanup error using of dialer.DefaultInterface 2023-10-26 09:07:49 +08:00
wwqgtxx 55f626424f chore: better dns batchExchange 2023-10-25 20:16:44 +08:00
wwqgtxx 431d52f250 chore: system resolver can autoupdate 2023-10-25 19:21:20 +08:00
wwqgtxx c1f24d8f0e chore: code cleanup 2023-10-25 18:07:45 +08:00
Steve Johnson fc5a3cf80c action: ban black issues 2023-10-25 18:06:10 +08:00
wwqgtxx e1e999180a chore: inMemoryAuthenticator unneed sync map 2023-10-24 21:25:03 +08:00
wwqgtxx 8755618910 fix: reality panic 2023-10-23 23:33:59 +08:00
Steve Johnson aede97571f Merge branch 'Alpha' of https://github.com/MetaCubeX/Clash.Meta into Alpha 2023-10-23 17:02:08 +08:00
Steve Johnson 01bc84db02 chore: add labels to issue template 2023-10-23 17:02:04 +08:00
wwqgtxx 3564e96a00 chore: share some code 2023-10-23 16:45:22 +08:00
wwqgtxx f6f8f27668 action: update sync 2023-10-23 15:39:56 +08:00
Steve Johnson dff54464c6 Add auto sync Alpha rebase android-open -> android-real (#817)
* chore: add android branch auto sync

* chore: fix

* chore: fix missing

* chore: fix actions

* chore: write branch auto sync
2023-10-23 15:39:56 +08:00
Steve Johnson e987cdaaae chore: add CMFA auto update-dependencies trigger 2023-10-23 15:39:56 +08:00
wwqgtxx 6cd0e58fd0 fix: ssr panic 2023-10-23 15:39:56 +08:00
wwqgtxx f794c090a5 chore: update sing-tun 2023-10-23 15:39:56 +08:00
xishang0128 0d3197e437 chore: fix sniffer log error 2023-10-20 22:36:29 +08:00
wwqgtxx 150bf7fc65 chore: decrease memory copy in sing listener 2023-10-20 08:39:04 +08:00
Larvan2 51004b14d9 docs: update readme.md 2023-10-20 00:34:10 +08:00
wwqgtxx ea7e15b447 chore: decrease memory copy in quic sniffer 2023-10-19 23:51:37 +08:00
wwqgtxx 8e637a2ec7 chore: code cleanup 2023-10-19 20:44:49 +08:00
Larvan2 96d886380a Merge pull request #810 from 5aaee9/Alpha
feat: add quic sniffer
2023-10-19 19:34:45 +08:00
5aaee9 981c69040f docs: update about quic sniffer 2023-10-19 19:09:13 +08:00
5aaee9 de90c276af feat(sniffer): add quic sniffer 2023-10-19 18:30:20 +08:00
wwqgtxx 0129a8579f chore: merge some quic-go fix 2023-10-19 11:08:14 +08:00
wwqgtxx 11ed4a56bd chore: code cleanup 2023-10-17 12:46:41 +08:00
wwqgtxx d75a0e69a0 chore: Update dependencies 2023-10-16 09:56:41 +08:00
Dreamacro 1faad73381 fix: socks5 udp associate 2023-10-16 09:27:55 +08:00
septs d2499cd69d feature: add xdg base support (#2913) 2023-10-16 09:23:31 +08:00
septs 98df77439c feature: add environs startup option support (#2909) 2023-10-16 09:22:16 +08:00
Jiahao Lu 81bbbe4eec fix: DNS NCACHE TTL and OPT RRs (#2900)
* Fix: DNS NCACHE TTL and OPT RRs

1. DNS NCACHE was not correctly implemented.
2. OPT RRs must not be cached or forwarded.

Closes #2889.
2023-10-16 09:21:06 +08:00
sduoduo233 9f530525d7 fix: method in vmess http-opts is not used 2023-10-16 09:16:36 +08:00
wwqgtxx 129283066f chore: code cleanup 2023-10-11 22:54:19 +08:00
wwqgtxx 0dc6a726c1 fix: unmap 4in6 ip 2023-10-11 18:17:39 +08:00
wwqgtxx 4636499439 chore: support reject proxy type 2023-10-11 13:01:14 +08:00
wwqgtxx 9a16eb2895 fix: BBR memory leak
from: https://github.com/apernet/hysteria/commit/7c46e845a6e4d1355c1a4515fb8e94ebec2c89c3
2023-10-11 11:01:17 +08:00
wwqgtxx 270a080b55 fix: sing listener panic 2023-10-11 10:55:12 +08:00
wwqgtxx 1cf9a55e3e chore: code cleanup 2023-10-10 21:29:12 +08:00
wwqgtxx 6bcd91a801 feat: add skip-auth-prefixes 2023-10-10 21:29:12 +08:00
wwqgtxx 7ed25ddc74 chore: better atomic using 2023-10-10 21:28:46 +08:00
wwqgtxx ae557c30d3 fix: quic-go min MTU 2023-10-08 13:15:17 +08:00
wwqgtxx 5a1800d642 fix: BBR bandwidth estimation edge case
from https://github.com/apernet/hysteria/commit/89429598bf897a34d61027cf7f68f5e35fcfff4b
2023-10-08 07:26:28 +08:00
wwqgtxx d8fe7a52d6 feat: add certificate and private-key to vmess listener 2023-10-08 07:26:28 +08:00
wwqgtxx 791ecfbb32 feat: add ws-path to vmess listener 2023-10-08 07:26:28 +08:00
wwqgtxx 5ff4473083 chore: migrate from gorilla/websocket to gobwas/ws 2023-10-06 17:44:36 +08:00
wwqgtxx d1e88a30cb fix: gVisor UDP 6to4 check 2023-10-03 16:00:03 +08:00
wwqgtxx 7eae7756f5 chore: update gvisor 2023-10-01 19:15:26 +08:00
wwqgtxx 4e3cd01aad chore: merge some quic-go fix 2023-10-01 13:44:56 +08:00
Larvan2andwwqgtxx dbaee284e4 fix: hy2/tuic inbound cert isn't path
Co-authored-by: wwqgtxx <wwqgtxx@gmail.com>
2023-10-01 12:04:34 +08:00
wwqgtxx 8253bfe2e0 add quic-go-disable-ecn to experimental 2023-10-01 09:10:11 +08:00
wwqgtxx 828b5ad8bb chore: add new bbr implementation 2023-10-01 00:01:32 +08:00
Larvan2 fedad26c13 chore: support relative path for hy2/tuic inbound cert 2023-10-01 00:01:32 +08:00
wwqgtxx a526bb70ea chore: fix bbr bugs 2023-09-30 13:40:07 +08:00
yaling888 5f6de610e1 Fix: should check all ips need to fallback (#2915) 2023-09-29 13:42:22 +08:00
Larvan2 02397868fc docs: support reload in service 2023-09-29 13:26:59 +08:00
Kiva 265a6b9b68 chore: reduce string split immediately after string concat (#773) 2023-09-29 08:51:13 +08:00
NyaMisty 10e7c533d7 feat: support clash premium's structured log stream (#735)
* feat: support clash premium's structured log stream

New version of Clash for Windows uses `ws://external-controller/logs?token=&level=info&format=structured` to get real time log. When Clash Premium Core reveices `format=structured`, it returns a different form of JSON log entry. Supporting this feature will allow better Clash for Windows integration

Signed-off-by: Misty <gyc990326@gmail.com>
2023-09-29 08:50:50 +08:00
septs 0ed3c5a5ec chore: improve subscription userinfo parsing (#781)
do not use regex parsing for `Subscription-UserInfo` header field
2023-09-29 08:42:57 +08:00
Andrei Shevchuk c2b06a02bf feat: add reload signal support (#780)
Backport Clash feature by @septs, see Dreamacro/clash#2908
2023-09-29 08:36:25 +08:00
wwqgtxx e0458a8fde chore: decrease goroutine used in core tunnel 2023-09-28 18:59:31 +08:00
wwqgtxx 21fb5f75b8 fix: gvisor panic 2023-09-26 09:06:00 +08:00
wwqgtxx fb99412193 chore: update quic-go to 0.39.0 2023-09-26 08:51:25 +08:00
Larvan2 fdd327d58d fix: fail to set KeepAliveIntervall #715 2023-09-25 14:05:13 +08:00
wwqgtxx 0dfe696300 chore: ntp service support dialer-proxy 2023-09-25 09:11:35 +08:00
wwqgtxx c0ba798708 chore: share N.dialer code 2023-09-25 09:11:35 +08:00
Kiva 67d7e53f7a feat: recovering preHandleMetadata failure from sniffing (#769) 2023-09-24 19:27:55 +08:00
Larvan2 e6366f7442 chore: fix typo 2023-09-24 19:00:51 +08:00
汐殇 89d9cb0539 Merge pull request #767 from PuerNya/fix-delay
chore: handle provider proxies  in proxies api
2023-09-24 15:55:33 +08:00
PuerNya 0d300a3540 chore: handle provider proxies in proxies api 2023-09-24 15:39:14 +08:00
xishang0128 7c59916c22 chore: update provider proxies api 2023-09-24 00:19:10 +08:00
Larvan2 8f515ecc05 chore: updateUI API return 501 when config incomplete 2023-09-23 18:00:07 +08:00
xishang0128 34f62a0919 feat: add provider proxies api 2023-09-23 17:54:20 +08:00
wwqgtxx 0207a7ac96 chore: resolver read system hosts file 2023-09-23 14:01:18 +08:00
wwqgtxx bf619d8586 fix: socks5 udp not working on loopback 2023-09-22 23:33:24 +08:00
wwqgtxx d48f9c2a6c chore: rebuild ca parsing 2023-09-22 14:45:34 +08:00
wwqgtxx 90a5aa609a fix: uot read failed 2023-09-22 00:11:57 +08:00
wwqgtxx 4fe7a463c5 chore: limit tuicv5's maxUdpRelayPacketSize up to 1200-PacketOverHead 2023-09-21 23:49:45 +08:00
wwqgtxx 7f49c91267 fix: hy2 udp not working 2023-09-21 23:36:40 +08:00
Larvan2 f6bf9c0857 feat: converter support hysteria2 2023-09-21 17:25:15 +08:00
wwqgtxx da24810da2 chore: support set cwnd for hy2 too 2023-09-21 16:41:31 +08:00
wwqgtxx ee3213c28f fix: tuicv5 panic in ReadFrom 2023-09-21 15:10:35 +08:00
wwqgtxx 233eeb0b38 feat: inbound support Hysteria2 2023-09-21 15:10:35 +08:00
wwqgtxx 6c3b973748 doc: add Hysteria2 doc 2023-09-21 10:43:45 +08:00
wwqgtxx 9b8e2d9343 feat: support Hysteria2 2023-09-21 10:28:28 +08:00
wwqgtxx 24fd577767 chore: Update dependencies 2023-09-21 08:57:38 +08:00
wwqgtxx 42b85de83e chore: Restore go1.20 support 2023-09-21 08:29:28 +08:00
wwqgtxx 62266010ac Revert "migration: go 1.21"
This reverts commit 33d41338ef.
2023-09-21 08:29:28 +08:00
xishang0128 0d7a57fa9d Chore: update github issue template 2023-09-21 03:40:46 +08:00
汐殇 f909b3c0dc chore: Update android-ndk 2023-09-20 15:26:36 +08:00
xishang0128 8b518161a3 chore: update external-ui 2023-09-20 14:23:58 +08:00
Larvan2 20fafdca65 chore: cleanup code 2023-09-18 19:42:08 +08:00
Larvan2 fd96efd456 chore: ignore PR when Pre-releasing 2023-09-18 19:36:11 +08:00
Larvan2 7c21768e99 feat: update external-ui 2023-09-18 19:21:30 +08:00
Larvan2 6a5a94f48f chore: DNS cache policy follow upstream 2023-09-17 17:18:35 +08:00
Larvan2 33d41338ef migration: go 1.21 2023-09-17 17:05:13 +08:00
Skyxim 2d3b9364bf fix: caceh dns result 2023-09-16 12:30:11 +08:00
Larvan2andH1JK fa49fd7ba2 chore: use cmp in go 1.21
Co-authored-by: H1JK <hell0jack@protonmail.com>
2023-09-16 12:06:58 +08:00
Larvan2 c3d72f6883 feat: download/upgrade XD to external-ui 2023-09-16 11:44:15 +08:00
kunish af99b52527 docs(README): update dashboard section 2023-09-09 13:06:49 +08:00
H1JK f241e1f81a chore: Update dependencies 2023-09-09 09:53:14 +08:00
H1JK 90acce7fa1 feat: Add disable quic-go GSO to experimental 2023-09-08 22:58:59 +08:00
xishang0128 7286391883 feat: support users to customize download ua 2023-09-07 18:44:58 +08:00
riolu.rs a1eab125ee fix: ntp service panic 2023-09-04 18:35:06 +08:00
Larvan2 1d4af2d92b chore: TCPKeepAlive interval set to 15s by default 2023-09-03 20:42:54 +08:00
riolu.rs d6cf2a837f chore: ntp service dep with sing, optional synchronize system time 2023-09-03 17:49:56 +08:00
H1JK d6b80acfbc chore: Use xsync provided map size calculation 2023-09-02 20:17:43 +08:00
wwqgtxx 1cad615b25 chore: using xsync.MapOf replace sync.Map 2023-09-02 16:54:48 +08:00
Larvan2 73fa79bf3f feat: configurable TCPKeepAlive interval 2023-09-02 16:45:16 +08:00
Larvan2 d79c13064e chore: cleanup codes 2023-09-02 14:12:53 +08:00
YanceyChiew 427a377c2a refactor: Decouple .Cleanup from ReCreateTun
The listener.Cleanup method will be called during
executor.Shutdown and route.restart, so it should serve
all kinds of listeners rather than a single tun device.

Currently listener.ReCreateTun will call it to handle
some internal affairs, This should be decoupled.

In this way, the cleanup tasks for data outside the
process life cycle that other listeners will add here
in the future will not be accidentally triggered
by configuring tun.
2023-09-02 14:12:53 +08:00
YanceyChiew 9feb4d6668 fix: RESTful api missing TunConf.device
In commit 54fee7b, due to failure to take into account that
not all required parameters of `sing_tun.server.New` have
default values provided by `LC.Tun`, the name of the tun device
cannot be obtained when `TunConf.device` is not explicitly
configured. This commit fixed the issue.
2023-09-02 14:12:53 +08:00
wwqgtxx a366e9a4b5 fix: ntp service panic 2023-09-02 12:37:43 +08:00
riolu.rs cbdf33c42c feat: ntp service 2023-09-02 02:15:46 +08:00
Larvan2 9ceaf20584 fix: concurrent map writes #707 2023-09-01 10:43:04 +08:00
YanceyChiew 54fee7bd3a Improve: nicer tun info for RESTful api
Let the restful api still get TunConf even when tun is off.
Otherwise the api will return the default values,
instead of the values that actually take effect after enable.

* Due to this problem, yacd changes the displayed value
back to gvisor immediately after the user selects tun stack.
2023-08-30 21:13:32 +08:00
Larvan2 414d8f2162 chore: use WaitGroup in dualStackDialContext 2023-08-30 17:28:36 +08:00
Mitt 86cf1dd54b fix: dualStack confusing error on ipv4 failed connect 2023-08-30 17:28:36 +08:00
Larvan2 d099375200 chore: rename func name 2023-08-30 15:52:41 +08:00
Alpha 9536372cfb fix: call shutdown before restart (#709) 2023-08-30 15:49:28 +08:00
Larvan2 630a17cf90 chore: cleanup codes 2023-08-26 21:20:20 +08:00
wwqgtxx 0a7b7894bd feat: proxies support direct type 2023-08-24 23:33:03 +08:00
wwqgtxx 3a9fc39cd9 chore: update quic-go to 0.38.0 2023-08-21 16:18:56 +08:00
wwqgtxx 1181fd4560 feat: add udp-over-stream for tuic
only work with meta tuic server or sing-box 1.4.0-beta.6
2023-08-21 12:37:39 +08:00
Larvan2 b8a60261ef chore: restore unselected
clear selected node in outboundgoup/URLtest when getGroupDelay triggered
2023-08-18 22:17:07 +08:00
wwqgtxx db68d55a0e fix: sing-vmess panic 2023-08-17 22:33:07 +08:00
wwqgtxx 574efb4526 chore: Update dependencies 2023-08-16 21:30:12 +08:00
3andne 03b0252589 feat: bump restls to v0.1.6 (utls v1.4.3) (#692)
* feat: bump restls to v0.1.5 (utls v1.4.3)
* fix: rm dependency go-quic
2023-08-16 11:41:58 +08:00
H1JK ed09df4e13 fix: TLS ALPN support 2023-08-14 15:48:13 +08:00
H1JK f89ecd97d6 feat: Converter unofficial TUIC share link support 2023-08-14 15:11:33 +08:00
wwqgtxx 3093fc4f33 chore: update go1.21.0 release 2023-08-09 17:26:24 +08:00
wwqgtxx 984fca4726 feat: add inbound-mptcp for listeners 2023-08-09 17:09:03 +08:00