mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-09-02 23:38:48 +08:00
Compare commits
86 Commits
29775c8558
...
fe79904344
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fe79904344 | ||
![]() |
f2687a71dd | ||
![]() |
e432d7259f | ||
![]() |
994c8ccb23 | ||
![]() |
6500a9584f | ||
![]() |
a68d72dfe5 | ||
![]() |
68322a2ede | ||
![]() |
deee50684b | ||
![]() |
a3123abf6c | ||
![]() |
47130b052b | ||
![]() |
eab7fb1b7e | ||
![]() |
f421c0e439 | ||
![]() |
3670371f4b | ||
![]() |
56717b599d | ||
![]() |
2de381b430 | ||
![]() |
c0e7f2cc58 | ||
![]() |
30e9a2bcaf | ||
![]() |
1fdd0f602f | ||
![]() |
ac2bca3bf7 | ||
![]() |
1ca3a80e9c | ||
![]() |
bfec5f040d | ||
![]() |
052d912e3c | ||
![]() |
ff23969e43 | ||
![]() |
221bba4c96 | ||
![]() |
2011148ef4 | ||
![]() |
4d43653795 | ||
![]() |
88d08e3f53 | ||
![]() |
4a7494da58 | ||
![]() |
a268062c55 | ||
![]() |
383b844a43 | ||
![]() |
6ed53fb1c1 | ||
![]() |
223ea51810 | ||
![]() |
6d3b24fe33 | ||
![]() |
cc758a2d79 | ||
![]() |
a11cffce08 | ||
![]() |
23f77daba2 | ||
![]() |
f899e6c246 | ||
![]() |
73bab537d1 | ||
![]() |
2224eee136 | ||
![]() |
c7abc49bea | ||
![]() |
77b7c8d2a5 | ||
![]() |
9ff02d7e0a | ||
![]() |
16e4401060 | ||
![]() |
0974764c35 | ||
![]() |
9833c23e1e | ||
![]() |
3bfbf3e6b2 | ||
![]() |
f2f959bf2f | ||
![]() |
b876dd92be | ||
![]() |
63580f0199 | ||
![]() |
2e287fa0ce | ||
![]() |
2e2ba4ec8b | ||
![]() |
d999f44d62 | ||
![]() |
b94a46f35c | ||
![]() |
fa45f2e4fb | ||
![]() |
073cb6fab8 | ||
![]() |
632e071be3 | ||
![]() |
dcc7648431 | ||
![]() |
ecae4869ad | ||
![]() |
7bd83f1aa4 | ||
![]() |
771d9b49e4 | ||
![]() |
270cf99d9f | ||
![]() |
fd20fe48d2 | ||
![]() |
79edcb58f8 | ||
![]() |
06327cc7be | ||
![]() |
b720472dc7 | ||
![]() |
96434bd18e | ||
![]() |
caa44e0276 | ||
![]() |
d48a81fc3d | ||
![]() |
040abba031 | ||
![]() |
bbce1feed6 | ||
![]() |
7ef6b84e2b | ||
![]() |
fccd3f9e00 | ||
![]() |
a08ebe8941 | ||
![]() |
161e18b479 | ||
![]() |
d1097c23a9 | ||
![]() |
1abc3420bd | ||
![]() |
226f4a3919 | ||
![]() |
8fd9eb9736 | ||
![]() |
bcdd3240ad | ||
![]() |
eef461259d | ||
![]() |
46e863bd6f | ||
![]() |
ef8ebec8d1 | ||
![]() |
357b4c2422 | ||
![]() |
414bc9841b | ||
![]() |
1d100c6515 | ||
![]() |
900888731c |
@ -258,7 +258,14 @@ func (r *Router) Exchange(ctx context.Context, message *mDNS.Msg, options adapte
|
||||
case *R.RuleActionReject:
|
||||
switch action.Method {
|
||||
case C.RuleActionRejectMethodDefault:
|
||||
return FixedResponse(message.Id, message.Question[0], nil, 0), nil
|
||||
return &mDNS.Msg{
|
||||
MsgHdr: mDNS.MsgHdr{
|
||||
Id: message.Id,
|
||||
Rcode: mDNS.RcodeRefused,
|
||||
Response: true,
|
||||
},
|
||||
Question: []mDNS.Question{message.Question[0]},
|
||||
}, nil
|
||||
case C.RuleActionRejectMethodDrop:
|
||||
return nil, tun.ErrDrop
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user