mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
Compare commits
40 Commits
32c43a8f87
...
75f526cb29
Author | SHA1 | Date | |
---|---|---|---|
![]() |
75f526cb29 | ||
![]() |
ca37772b9e | ||
![]() |
8bd0d978d2 | ||
![]() |
6358fd6a08 | ||
![]() |
1a8994b44c | ||
![]() |
5c628f3ada | ||
![]() |
4c7fc4765b | ||
![]() |
86a68e8588 | ||
![]() |
400dbb4214 | ||
![]() |
9a521c76a7 | ||
![]() |
02d3e7e44a | ||
![]() |
94cb87e920 | ||
![]() |
d1c4fa4e45 | ||
![]() |
4bec17c391 | ||
![]() |
609918dd93 | ||
![]() |
21feafab1a | ||
![]() |
84f13073cd | ||
![]() |
a120f8a7ea | ||
![]() |
ca09454708 | ||
![]() |
c3da006859 | ||
![]() |
bc72bcc053 | ||
![]() |
bb7989e81f | ||
![]() |
fd16af06ab | ||
![]() |
b7311fd2cc | ||
![]() |
53344f789f | ||
![]() |
b43c4e0c87 | ||
![]() |
8b1fcf7903 | ||
![]() |
764d4b1950 | ||
![]() |
1645cd30d9 | ||
![]() |
32ac8fe7ec | ||
![]() |
23778984ab | ||
![]() |
10faff797a | ||
![]() |
7a7cf6216b | ||
![]() |
ef82c51077 | ||
![]() |
23a0d12834 | ||
![]() |
5ac18ce8ad | ||
![]() |
6c38fec376 | ||
![]() |
6c598746d5 | ||
![]() |
fe0ce58864 | ||
![]() |
7372d239a4 |
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -155,7 +155,7 @@ jobs:
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser-pro
|
||||
version: '~> v2'
|
||||
version: nightly
|
||||
install-only: true
|
||||
- name: Extract signing key
|
||||
run: |-
|
||||
@ -551,7 +551,7 @@ jobs:
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser-pro
|
||||
version: '~> v2'
|
||||
version: 2.5.1
|
||||
install-only: true
|
||||
- name: Cache ghr
|
||||
uses: actions/cache@v4
|
||||
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser-pro
|
||||
version: '~> v2'
|
||||
version: latest
|
||||
args: release -f .goreleaser.fury.yaml --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -383,8 +383,7 @@ func (r *Router) Lookup(ctx context.Context, domain string, options adapter.DNSQ
|
||||
ruleIndex = -1
|
||||
for {
|
||||
dnsCtx := adapter.OverrideContext(ctx)
|
||||
dnsOptions := options
|
||||
transport, rule, ruleIndex = r.matchDNS(ctx, false, ruleIndex, true, &dnsOptions)
|
||||
transport, rule, ruleIndex = r.matchDNS(ctx, false, ruleIndex, true, &options)
|
||||
if rule != nil {
|
||||
switch action := rule.Action().(type) {
|
||||
case *R.RuleActionReject:
|
||||
@ -417,10 +416,10 @@ func (r *Router) Lookup(ctx context.Context, domain string, options adapter.DNSQ
|
||||
return rule.MatchAddressLimit(metadata)
|
||||
}
|
||||
}
|
||||
if dnsOptions.Strategy == C.DomainStrategyAsIS {
|
||||
dnsOptions.Strategy = r.defaultDomainStrategy
|
||||
if options.Strategy == C.DomainStrategyAsIS {
|
||||
options.Strategy = r.defaultDomainStrategy
|
||||
}
|
||||
responseAddrs, err = r.client.Lookup(dnsCtx, transport, domain, dnsOptions, responseCheck)
|
||||
responseAddrs, err = r.client.Lookup(dnsCtx, transport, domain, options, responseCheck)
|
||||
if responseCheck == nil || err == nil {
|
||||
break
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ import (
|
||||
"github.com/sagernet/sing/common/bufio"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
"github.com/sagernet/sing/common/logger"
|
||||
M "github.com/sagernet/sing/common/metadata"
|
||||
N "github.com/sagernet/sing/common/network"
|
||||
sHTTP "github.com/sagernet/sing/protocol/http"
|
||||
|
||||
@ -100,7 +101,8 @@ func NewHTTP3(ctx context.Context, logger log.ContextLogger, tag string, options
|
||||
headers: headers,
|
||||
transport: &http3.Transport{
|
||||
Dial: func(ctx context.Context, addr string, tlsCfg *tls.STDConfig, cfg *quic.Config) (quic.EarlyConnection, error) {
|
||||
conn, dialErr := transportDialer.DialContext(ctx, N.NetworkUDP, serverAddr)
|
||||
destinationAddr := M.ParseSocksaddr(addr)
|
||||
conn, dialErr := transportDialer.DialContext(ctx, N.NetworkUDP, destinationAddr)
|
||||
if dialErr != nil {
|
||||
return nil, dialErr
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
icon: material/alert-decagram
|
||||
---
|
||||
|
||||
#### 1.12.0-alpha.15
|
||||
#### 1.12.0-alpha.14
|
||||
|
||||
* Fixes and improvements
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user