Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/foss/golang/clash
Submodule clash updated 94 files
+53 −55 adapter/inbound/listen.go
+1 −1 adapter/outbound/anytls.go
+1 −1 adapter/outbound/base.go
+1 −1 adapter/outbound/direct.go
+1 −1 adapter/outbound/dns.go
+1 −1 adapter/outbound/gost_relay.go
+1 −1 adapter/outbound/hysteria.go
+1 −1 adapter/outbound/hysteria2.go
+1 −1 adapter/outbound/masque.go
+1 −1 adapter/outbound/mieru.go
+1 −1 adapter/outbound/openvpn.go
+1 −1 adapter/outbound/reject.go
+56 −0 adapter/outbound/rematch.go
+3 −3 adapter/outbound/shadowsocks.go
+1 −1 adapter/outbound/shadowsocksr.go
+1 −1 adapter/outbound/singmux.go
+4 −1 adapter/outbound/snell.go
+1 −1 adapter/outbound/socks5.go
+1 −1 adapter/outbound/sudoku.go
+1 −1 adapter/outbound/tailscale.go
+1 −1 adapter/outbound/trojan.go
+1 −1 adapter/outbound/trusttunnel.go
+3 −3 adapter/outbound/tuic.go
+7 −3 adapter/outbound/vless.go
+2 −2 adapter/outbound/vmess.go
+1 −1 adapter/outbound/wireguard.go
+5 −2 adapter/outboundgroup/parser.go
+7 −0 adapter/parser.go
+16 −2 common/convert/v.go
+15 −0 common/sockopt/mark_common.go
+7 −0 common/sockopt/mark_linux.go
+5 −0 common/sockopt/mark_other.go
+3 −9 component/dialer/mark_linux.go
+0 −4 component/keepalive/tcp_keepalive.go
+80 −74 config/config.go
+3 −0 constant/adapters.go
+9 −1 constant/listener.go
+1 −0 constant/metadata.go
+5 −2 constant/rule.go
+5 −5 dns/server.go
+27 −1 docs/config.yaml
+2 −2 go.mod
+4 −4 go.sum
+4 −2 hub/executor/executor.go
+13 −0 hub/hub.go
+11 −3 hub/route/server.go
+2 −2 listener/anytls/server.go
+17 −0 listener/config/snell.go
+5 −4 listener/http/server.go
+2 −2 listener/hysteria2_realm/server.go
+1 −1 listener/inbound/anytls.go
+19 −0 listener/inbound/base.go
+2 −0 listener/inbound/http.go
+1 −1 listener/inbound/hysteria2.go
+1 −1 listener/inbound/hysteria2_realm.go
+3 −14 listener/inbound/mieru.go
+42 −8 listener/inbound/mieru_test.go
+14 −16 listener/inbound/mixed.go
+1 −1 listener/inbound/shadowsocks.go
+4 −3 listener/inbound/snell.go
+14 −16 listener/inbound/socks.go
+2 −1 listener/inbound/sudoku.go
+1 −1 listener/inbound/trojan.go
+1 −1 listener/inbound/trusttunnel.go
+1 −1 listener/inbound/tuic.go
+3 −2 listener/inbound/tunnel.go
+1 −1 listener/inbound/vless.go
+1 −1 listener/inbound/vmess.go
+7 −5 listener/listener.go
+4 −3 listener/mixed/mixed.go
+4 −3 listener/shadowsocks/tcp.go
+3 −2 listener/shadowsocks/udp.go
+2 −2 listener/sing_hysteria2/server.go
+4 −4 listener/sing_shadowsocks/server.go
+2 −2 listener/sing_vless/server.go
+2 −2 listener/sing_vmess/server.go
+5 −18 listener/snell/server.go
+8 −3 listener/socks/tcp.go
+8 −2 listener/socks/udp.go
+3 −2 listener/sudoku/server.go
+3 −2 listener/trojan/server.go
+3 −3 listener/trusttunnel/server.go
+3 −2 listener/tuic/server.go
+3 −2 listener/tunnel/tcp.go
+3 −2 listener/tunnel/udp.go
+32 −15 main.go
+56 −0 rules/common/rematch_name.go
+2 −0 rules/parser.go
+6 −5 transport/openvpn/client.go
+35 −7 transport/snell/pool.go
+111 −6 transport/snell/pool_test.go
+8 −10 transport/xhttp/client.go
+78 −2 transport/xhttp/config.go
+48 −23 tunnel/tunnel.go
4 changes: 2 additions & 2 deletions core/src/foss/golang/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ require (
github.com/mdlayher/netlink v1.7.2 // indirect
github.com/mdlayher/socket v0.5.1 // indirect
github.com/metacubex/age v0.0.0-20260603010618-28d156b4ea78 // indirect
github.com/metacubex/amneziawg-go v0.0.0-20251104174305-5a0e9f7e361d // indirect
github.com/metacubex/amneziawg-go v0.0.0-20260612143004-19b4f1cdd5ec // indirect
github.com/metacubex/ascon v0.1.0 // indirect
github.com/metacubex/bart v0.26.0 // indirect
github.com/metacubex/bbolt v0.0.0-20250725135710-010dbbbb7a5b // indirect
Expand All @@ -71,7 +71,7 @@ require (
github.com/metacubex/mlkem v0.1.0 // indirect
github.com/metacubex/nftables v0.0.0-20260426003805-208c2c1ba2cb // indirect
github.com/metacubex/qpack v0.6.0 // indirect
github.com/metacubex/quic-go v0.59.1-0.20260520020949-fcd18c7b6ace // indirect
github.com/metacubex/quic-go v0.59.1-0.20260606115121-0662b57ad5bf // indirect
github.com/metacubex/randv2 v0.2.0 // indirect
github.com/metacubex/restls-client-go v0.1.7 // indirect
github.com/metacubex/sevenzip v1.6.4 // indirect
Expand Down
8 changes: 4 additions & 4 deletions core/src/foss/golang/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ github.com/mdlayher/socket v0.5.1 h1:VZaqt6RkGkt2OE9l3GcC6nZkqD3xKeQLyfleW/uBcos
github.com/mdlayher/socket v0.5.1/go.mod h1:TjPLHI1UgwEv5J1B5q0zTZq12A/6H7nKmtTanQE37IQ=
github.com/metacubex/age v0.0.0-20260603010618-28d156b4ea78 h1:LqWr0vb9zDNuQS+jJd4fnRYk/SEI7KJ7TDe/L4WFK48=
github.com/metacubex/age v0.0.0-20260603010618-28d156b4ea78/go.mod h1:BTBG/iVY7rg3qq5WdVCg0GFk58CSvCDSbjy8I7kEx/c=
github.com/metacubex/amneziawg-go v0.0.0-20251104174305-5a0e9f7e361d h1:vAJ0ZT4aO803F1uw2roIA9yH7Sxzox34tVVyye1bz6c=
github.com/metacubex/amneziawg-go v0.0.0-20251104174305-5a0e9f7e361d/go.mod h1:MsM/5czONyXMJ3PRr5DbQ4O/BxzAnJWOIcJdLzW6qHY=
github.com/metacubex/amneziawg-go v0.0.0-20260612143004-19b4f1cdd5ec h1:nRHevF7PmvDKjkYPjQCU7NUfVrr3Sry4QOPxpqoyo8U=
github.com/metacubex/amneziawg-go v0.0.0-20260612143004-19b4f1cdd5ec/go.mod h1:MsM/5czONyXMJ3PRr5DbQ4O/BxzAnJWOIcJdLzW6qHY=
github.com/metacubex/ascon v0.1.0 h1:6ZWxmXYszT1XXtwkf6nxfFhc/OTtQ9R3Vyj1jN32lGM=
github.com/metacubex/ascon v0.1.0/go.mod h1:eV5oim4cVPPdEL8/EYaTZ0iIKARH9pnhAK/fcT5Kacc=
github.com/metacubex/bart v0.26.0 h1:d/bBTvVatfVWGfQbiDpYKI1bXUJgjaabB2KpK1Tnk6w=
Expand Down Expand Up @@ -143,8 +143,8 @@ github.com/metacubex/protobuf-go v0.0.0-20260306035419-7ceee0674686 h1:PIXmYT2an
github.com/metacubex/protobuf-go v0.0.0-20260306035419-7ceee0674686/go.mod h1:eQV7juxFZIdRgjMxtVqP+6BssKoTZQ1RM0fc58BsCZY=
github.com/metacubex/qpack v0.6.0 h1:YqClGIMOpiRYLjV1qOs483Od08MdPgRnHjt90FuaAKw=
github.com/metacubex/qpack v0.6.0/go.mod h1:lKGSi7Xk94IMvHGOmxS9eIei3bvIqpOAImEBsaOwTkA=
github.com/metacubex/quic-go v0.59.1-0.20260520020949-fcd18c7b6ace h1:KXacx7dp1GYVMgxezwXRt5BMsEbvAYuA6rPFUmdAvcQ=
github.com/metacubex/quic-go v0.59.1-0.20260520020949-fcd18c7b6ace/go.mod h1:2YEQEvFrZ5V76oynMBDTlN+4fdnSHCa2uNJxv3cm1HU=
github.com/metacubex/quic-go v0.59.1-0.20260606115121-0662b57ad5bf h1:WvIp5pF+LLZwg0I6555eMVlKFrLrqQqPKob6XW6niyo=
github.com/metacubex/quic-go v0.59.1-0.20260606115121-0662b57ad5bf/go.mod h1:2YEQEvFrZ5V76oynMBDTlN+4fdnSHCa2uNJxv3cm1HU=
github.com/metacubex/randv2 v0.2.0 h1:uP38uBvV2SxYfLj53kuvAjbND4RUDfFJjwr4UigMiLs=
github.com/metacubex/randv2 v0.2.0/go.mod h1:kFi2SzrQ5WuneuoLLCMkABtiBu6VRrMrWFqSPyj2cxY=
github.com/metacubex/restls-client-go v0.1.7 h1:eCwiXCTQb5WJu9IlgYvDBA1OgrINv58dEe7hcN5H15k=
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/golang/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ require (
github.com/mdlayher/netlink v1.7.2 // indirect
github.com/mdlayher/socket v0.5.1 // indirect
github.com/metacubex/age v0.0.0-20260603010618-28d156b4ea78 // indirect
github.com/metacubex/amneziawg-go v0.0.0-20251104174305-5a0e9f7e361d // indirect
github.com/metacubex/amneziawg-go v0.0.0-20260612143004-19b4f1cdd5ec // indirect
github.com/metacubex/ascon v0.1.0 // indirect
github.com/metacubex/bart v0.26.0 // indirect
github.com/metacubex/bbolt v0.0.0-20250725135710-010dbbbb7a5b // indirect
Expand All @@ -75,7 +75,7 @@ require (
github.com/metacubex/mlkem v0.1.0 // indirect
github.com/metacubex/nftables v0.0.0-20260426003805-208c2c1ba2cb // indirect
github.com/metacubex/qpack v0.6.0 // indirect
github.com/metacubex/quic-go v0.59.1-0.20260520020949-fcd18c7b6ace // indirect
github.com/metacubex/quic-go v0.59.1-0.20260606115121-0662b57ad5bf // indirect
github.com/metacubex/randv2 v0.2.0 // indirect
github.com/metacubex/restls-client-go v0.1.7 // indirect
github.com/metacubex/sevenzip v1.6.4 // indirect
Expand Down
8 changes: 4 additions & 4 deletions core/src/main/golang/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ github.com/mdlayher/socket v0.5.1 h1:VZaqt6RkGkt2OE9l3GcC6nZkqD3xKeQLyfleW/uBcos
github.com/mdlayher/socket v0.5.1/go.mod h1:TjPLHI1UgwEv5J1B5q0zTZq12A/6H7nKmtTanQE37IQ=
github.com/metacubex/age v0.0.0-20260603010618-28d156b4ea78 h1:LqWr0vb9zDNuQS+jJd4fnRYk/SEI7KJ7TDe/L4WFK48=
github.com/metacubex/age v0.0.0-20260603010618-28d156b4ea78/go.mod h1:BTBG/iVY7rg3qq5WdVCg0GFk58CSvCDSbjy8I7kEx/c=
github.com/metacubex/amneziawg-go v0.0.0-20251104174305-5a0e9f7e361d h1:vAJ0ZT4aO803F1uw2roIA9yH7Sxzox34tVVyye1bz6c=
github.com/metacubex/amneziawg-go v0.0.0-20251104174305-5a0e9f7e361d/go.mod h1:MsM/5czONyXMJ3PRr5DbQ4O/BxzAnJWOIcJdLzW6qHY=
github.com/metacubex/amneziawg-go v0.0.0-20260612143004-19b4f1cdd5ec h1:nRHevF7PmvDKjkYPjQCU7NUfVrr3Sry4QOPxpqoyo8U=
github.com/metacubex/amneziawg-go v0.0.0-20260612143004-19b4f1cdd5ec/go.mod h1:MsM/5czONyXMJ3PRr5DbQ4O/BxzAnJWOIcJdLzW6qHY=
github.com/metacubex/ascon v0.1.0 h1:6ZWxmXYszT1XXtwkf6nxfFhc/OTtQ9R3Vyj1jN32lGM=
github.com/metacubex/ascon v0.1.0/go.mod h1:eV5oim4cVPPdEL8/EYaTZ0iIKARH9pnhAK/fcT5Kacc=
github.com/metacubex/bart v0.26.0 h1:d/bBTvVatfVWGfQbiDpYKI1bXUJgjaabB2KpK1Tnk6w=
Expand Down Expand Up @@ -143,8 +143,8 @@ github.com/metacubex/protobuf-go v0.0.0-20260306035419-7ceee0674686 h1:PIXmYT2an
github.com/metacubex/protobuf-go v0.0.0-20260306035419-7ceee0674686/go.mod h1:eQV7juxFZIdRgjMxtVqP+6BssKoTZQ1RM0fc58BsCZY=
github.com/metacubex/qpack v0.6.0 h1:YqClGIMOpiRYLjV1qOs483Od08MdPgRnHjt90FuaAKw=
github.com/metacubex/qpack v0.6.0/go.mod h1:lKGSi7Xk94IMvHGOmxS9eIei3bvIqpOAImEBsaOwTkA=
github.com/metacubex/quic-go v0.59.1-0.20260520020949-fcd18c7b6ace h1:KXacx7dp1GYVMgxezwXRt5BMsEbvAYuA6rPFUmdAvcQ=
github.com/metacubex/quic-go v0.59.1-0.20260520020949-fcd18c7b6ace/go.mod h1:2YEQEvFrZ5V76oynMBDTlN+4fdnSHCa2uNJxv3cm1HU=
github.com/metacubex/quic-go v0.59.1-0.20260606115121-0662b57ad5bf h1:WvIp5pF+LLZwg0I6555eMVlKFrLrqQqPKob6XW6niyo=
github.com/metacubex/quic-go v0.59.1-0.20260606115121-0662b57ad5bf/go.mod h1:2YEQEvFrZ5V76oynMBDTlN+4fdnSHCa2uNJxv3cm1HU=
github.com/metacubex/randv2 v0.2.0 h1:uP38uBvV2SxYfLj53kuvAjbND4RUDfFJjwr4UigMiLs=
github.com/metacubex/randv2 v0.2.0/go.mod h1:kFi2SzrQ5WuneuoLLCMkABtiBu6VRrMrWFqSPyj2cxY=
github.com/metacubex/restls-client-go v0.1.7 h1:eCwiXCTQb5WJu9IlgYvDBA1OgrINv58dEe7hcN5H15k=
Expand Down
Loading