mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
Fix: HTTP sniff
This commit is contained in:
@@ -182,7 +182,7 @@ func shouldOverride(result SniffResult, domainOverride []string) bool {
|
||||
protocolString = resComp.ProtocolForDomainResult()
|
||||
}
|
||||
for _, p := range domainOverride {
|
||||
if strings.HasPrefix(p, protocolString) {
|
||||
if strings.HasPrefix(protocolString, p) && strings.HasSuffix(protocolString, p) {
|
||||
return true
|
||||
}
|
||||
if resultSubset, ok := result.(SnifferIsProtoSubsetOf); ok {
|
||||
|
||||
@@ -160,6 +160,9 @@ func (p *StaticMuxPicker) PickAvailable() (*mux.ClientWorker, error) {
|
||||
if w.draining {
|
||||
continue
|
||||
}
|
||||
if w.client.Closed() {
|
||||
continue
|
||||
}
|
||||
if w.client.ActiveConnections() < minConn {
|
||||
minConn = w.client.ActiveConnections()
|
||||
minIdx = i
|
||||
|
||||
Reference in New Issue
Block a user