Skip to content

Commit

Permalink
Remove request validate certificate
Browse files Browse the repository at this point in the history
Sync core
  • Loading branch information
chen08209 committed Jul 18, 2024
1 parent ec2890c commit f2aa885
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 80 deletions.
2 changes: 1 addition & 1 deletion core/Clash.Meta
Submodule Clash.Meta updated 92 files
+44 −25 .github/workflows/build.yml
+1 −13 adapter/inbound/listen.go
+23 −0 adapter/inbound/listen_unix.go
+15 −0 adapter/inbound/listen_windows.go
+18 −6 adapter/outbound/direct.go
+2 −2 adapter/outbound/hysteria2.go
+4 −4 adapter/outbound/ssh.go
+43 −0 adapter/outbound/trojan.go
+117 −41 adapter/outbound/wireguard.go
+2 −0 adapter/outboundgroup/relay.go
+3 −0 adapter/provider/parser.go
+18 −31 adapter/provider/provider.go
+1 −1 common/convert/converter.go
+3 −3 common/convert/util.go
+2 −2 common/pool/alloc_test.go
+50 −0 common/utils/callback.go
+29 −9 common/utils/uuid.go
+5 −3 component/cidr/ipcidr_set.go
+3 −3 component/dialer/dialer.go
+0 −17 component/dialer/tfo.go
+25 −0 component/dialer/tfo_unix.go
+8 −7 component/dialer/tfo_windows.go
+6 −4 component/iface/iface.go
+6 −9 component/loopback/detector.go
+38 −15 component/process/process_linux.go
+2 −2 component/resolver/host.go
+5 −5 component/resolver/resolver.go
+5 −6 component/sniffer/dispatcher.go
+3 −3 component/tls/reality.go
+15 −10 component/updater/update_geo.go
+111 −65 config/config.go
+1 −1 constant/features/version_windows.go
+7 −1 constant/provider/interface.go
+1 −0 constant/rule.go
+7 −40 dns/client.go
+11 −0 dns/dialer.go
+14 −21 dns/doh.go
+6 −10 dns/doq.go
+8 −5 dns/policy.go
+5 −4 dns/resolver.go
+8 −124 dns/util.go
+28 −3 docs/config.yaml
+23 −22 go.mod
+45 −47 go.sum
+5 −7 hub/executor/executor.go
+72 −58 hub/route/configs.go
+28 −19 listener/config/tun.go
+72 −44 listener/inbound/tun.go
+26 −2 listener/listener.go
+6 −0 listener/sing/sing.go
+7 −0 listener/sing_tun/dns.go
+70 −0 listener/sing_tun/iface.go
+3 −0 listener/sing_tun/redirect_linux.go
+5 −0 listener/sing_tun/redirect_stub.go
+214 −16 listener/sing_tun/server.go
+1 −1 listener/tproxy/packet.go
+1 −3 listener/tproxy/tproxy_iptables.go
+10 −14 main.go
+2 −0 rules/common/base.go
+10 −2 rules/logic/logic.go
+6 −0 rules/provider/ipcidr_strategy.go
+18 −24 rules/provider/provider.go
+32 −19 rules/provider/rule_set.go
+3 −3 transport/hysteria/conns/udp/hop.go
+2 −2 transport/hysteria/conns/wechat/obfs.go
+2 −2 transport/hysteria/core/client.go
+2 −3 transport/hysteria/obfs/xplus.go
+4 −3 transport/simple-obfs/http.go
+3 −4 transport/simple-obfs/tls.go
+5 −5 transport/ssr/obfs/http_simple.go
+4 −3 transport/ssr/obfs/random_head.go
+6 −5 transport/ssr/obfs/tls1.2_ticket_auth.go
+9 −8 transport/ssr/protocol/auth_aes128_sha1.go
+3 −3 transport/ssr/protocol/auth_sha1_v4.go
+4 −3 transport/ssr/protocol/base.go
+2 −2 transport/ssr/protocol/protocol.go
+4 −4 transport/tuic/common/congestion.go
+7 −18 transport/tuic/congestion/bbr_sender.go
+1 −1 transport/tuic/congestion/cubic.go
+12 −23 transport/tuic/congestion_v2/bbr_sender.go
+2 −2 transport/tuic/congestion_v2/pacer.go
+2 −2 transport/tuic/v4/client.go
+2 −2 transport/tuic/v5/client.go
+2 −2 transport/tuic/v5/packet.go
+5 −5 transport/vless/vision/padding.go
+5 −4 transport/vmess/conn.go
+2 −2 transport/vmess/h2.go
+4 −4 transport/vmess/http.go
+2 −2 transport/vmess/vmess.go
+4 −3 transport/vmess/websocket.go
+186 −0 tunnel/dns_dialer.go
+49 −59 tunnel/tunnel.go
43 changes: 22 additions & 21 deletions core/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ replace github.com/metacubex/mihomo => ./Clash.Meta
require (
github.com/Kr328/tun2socket v0.0.0-20220414050025-d07c78d06d34
github.com/metacubex/mihomo v1.17.1
github.com/miekg/dns v1.1.59
golang.org/x/net v0.25.0
github.com/miekg/dns v1.1.61
golang.org/x/net v0.26.0
golang.org/x/sync v0.7.0
)

Expand All @@ -31,7 +31,7 @@ require (
github.com/ericlagergren/subtle v0.0.0-20220507045147-890d697da010 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gaukas/godicttls v0.0.4 // indirect
github.com/go-chi/chi/v5 v5.0.12 // indirect
github.com/go-chi/chi/v5 v5.0.14 // indirect
github.com/go-chi/cors v1.2.1 // indirect
github.com/go-chi/render v1.0.3 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
Expand All @@ -44,24 +44,25 @@ require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/insomniacslk/dhcp v0.0.0-20240419123447-f1cffa2c0c49 // indirect
github.com/insomniacslk/dhcp v0.0.0-20240529192340-51bc6136a0a6 // indirect
github.com/josharian/native v1.1.0 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/lunixbochs/struc v0.0.0-20200707160740-784aaebc1d40 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mdlayher/netlink v1.7.2 // indirect
github.com/mdlayher/socket v0.4.1 // indirect
github.com/metacubex/gopacket v1.1.20-0.20230608035415-7e2f98a3e759 // indirect
github.com/metacubex/gvisor v0.0.0-20240320004321-933faba989ec // indirect
github.com/metacubex/quic-go v0.43.2-0.20240518033621-2c3d14c6b38e // indirect
github.com/metacubex/quic-go v0.45.1-0.20240610004319-163fee60637e // indirect
github.com/metacubex/randv2 v0.2.0 // indirect
github.com/metacubex/sing-quic v0.0.0-20240518034124-7696d3f7da72 // indirect
github.com/metacubex/sing-shadowsocks v0.2.6 // indirect
github.com/metacubex/sing-shadowsocks2 v0.2.0 // indirect
github.com/metacubex/sing-tun v0.2.7-0.20240512075008-89e7c6208eec // indirect
github.com/metacubex/sing-tun v0.2.7-0.20240627012306-9d1f5fc0b45e // indirect
github.com/metacubex/sing-vmess v0.1.9-0.20231207122118-72303677451f // indirect
github.com/metacubex/sing-wireguard v0.0.0-20240321042214-224f96122a63 // indirect
github.com/metacubex/sing-wireguard v0.0.0-20240618022557-a6efaa37127a // indirect
github.com/metacubex/tfo-go v0.0.0-20240228025757-be1269474a66 // indirect
github.com/metacubex/utls v1.6.6 // indirect
github.com/mroth/weightedrand/v2 v2.1.0 // indirect
Expand All @@ -71,18 +72,19 @@ require (
github.com/oschwald/maxminddb-golang v1.12.0 // indirect
github.com/pierrec/lz4/v4 v4.1.14 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/puzpuzpuz/xsync/v3 v3.1.0 // indirect
github.com/puzpuzpuz/xsync/v3 v3.2.0 // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/qtls-go1-20 v0.4.1 // indirect
github.com/sagernet/bbolt v0.0.0-20231014093535-ea5cb2fe9f0a // indirect
github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97 // indirect
github.com/sagernet/sing v0.3.8 // indirect
github.com/sagernet/netlink v0.0.0-20240612041022-b9a21c07ac6a // indirect
github.com/sagernet/nftables v0.3.0-beta.4 // indirect
github.com/sagernet/sing v0.5.0-alpha.10 // indirect
github.com/sagernet/sing-mux v0.2.1-0.20240124034317-9bfb33698bb6 // indirect
github.com/sagernet/sing-shadowtls v0.1.4 // indirect
github.com/sagernet/smux v0.0.0-20231208180855-7041f6ea79e7 // indirect
github.com/sagernet/wireguard-go v0.0.0-20231209092712-9a439356a62e // indirect
github.com/samber/lo v1.39.0 // indirect
github.com/shirou/gopsutil/v3 v3.24.4 // indirect
github.com/shirou/gopsutil/v3 v3.24.5 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/sina-ghaderi/poly1305 v0.0.0-20220724002748-c5926b03988b // indirect
github.com/sina-ghaderi/rabaead v0.0.0-20220730151906-ab6e06b96e8c // indirect
Expand All @@ -91,21 +93,20 @@ require (
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/u-root/uio v0.0.0-20230220225925-ffce2a382923 // indirect
github.com/vishvananda/netns v0.0.0-20211101163701-50045581ed74 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zhangyunhao116/fastrand v0.4.0 // indirect
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec // indirect
go.uber.org/mock v0.4.0 // indirect
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.21.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
golang.org/x/tools v0.22.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
)
Loading

0 comments on commit f2aa885

Please sign in to comment.