Skip to content

Commit

Permalink
fix: 🐛 fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
import-yuefeng committed Aug 19, 2019
1 parent 531e3cc commit df13e9f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion core/outbound/clients/remote_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func (cb *RemoteClientBundle) Exchange(isLog bool) *CacheMessage {
// use dns that first response
}
}
// defer close(ch)
if ec != nil && ec.responseMessage != nil {
cacheMessage.ResponseMessage = ec.responseMessage
cacheMessage.QuestionMessage = ec.questionMessage
Expand Down
2 changes: 0 additions & 2 deletions core/outbound/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ func (d *Dispatcher) Exchange(query *dns.Msg, inboundIP string) *dns.Msg {
bundleLenght--
if x.isHit {
ActiveClientBundle = x.hitRemoteClientBundle
close(ch)
break
}
}
Expand Down Expand Up @@ -183,7 +182,6 @@ func (d *Dispatcher) selectByIPNetwork(bundle *Bundle) *BundleMsg {
i++
}
if i >= int(float64(len(bundle.ClientBundle))*0.75) {
close(ch)
break
}
}
Expand Down

0 comments on commit df13e9f

Please sign in to comment.