Nits
This commit is contained in:
parent
72a6963f2e
commit
3049f43bc7
|
@ -145,14 +145,11 @@ 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 err != nil {
|
||||
return
|
||||
}
|
||||
if clientAddr != nil {
|
||||
clientPc.(net.PacketConn).WriteTo(encryptedResponse, *clientAddr)
|
||||
|
|
Loading…
Reference in New Issue