Skip to content

Commit 73ce692

Browse files
committed
fix error
1 parent 70e9485 commit 73ce692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/mydispatcher/default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type DefaultDispatcher struct {
103103
func init() {
104104
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
105105
d := new(DefaultDispatcher)
106-
if err := core.RequireFeatures(ctx, func(om outbound.Manager, router routing.Router, pm policy.Manager, sm stats.Manager) error {
106+
if err := core.RequireFeatures(ctx, func(om outbound.Manager, router routing.Router, pm policy.Manager, sm stats.Manager, dc dns.Client) error {
107107
return d.Init(config.(*Config), om, router, pm, sm, dc)
108108
}); err != nil {
109109
return nil, err
@@ -198,7 +198,7 @@ func (d *DefaultDispatcher) getLink(ctx context.Context) (*transport.Link, *tran
198198
return inboundLink, outboundLink
199199
}
200200

201-
func shouldOverride(ctx context.Context, SniffResult, request session.SniffingRequest, destination net.Destination) bool {
201+
func shouldOverride(ctx context.Context, result SniffResult, request session.SniffingRequest, destination net.Destination) bool {
202202
domain := result.Domain()
203203
for _, d := range request.ExcludeForDomain {
204204
if strings.ToLower(domain) == d {

0 commit comments

Comments
 (0)