Nits
This commit is contained in:
parent
72a6963f2e
commit
3049f43bc7
|
@ -145,15 +145,12 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, serverProto str
|
|||
var encryptedResponse []byte
|
||||
if serverProto == "udp" {
|
||||
encryptedResponse, err = proxy.exchangeWithUDPServer(serverInfo, encryptedQuery, clientNonce)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
encryptedResponse, err = proxy.exchangeWithTCPServer(serverInfo, encryptedQuery, clientNonce)
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
if clientAddr != nil {
|
||||
clientPc.(net.PacketConn).WriteTo(encryptedResponse, *clientAddr)
|
||||
if HasTCFlag(encryptedResponse) {
|
||||
|
|
Loading…
Reference in New Issue