mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
[Redirector] Optimize code
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "DNSHandler.h"
|
||||
|
||||
#include "SocksHelper.h"
|
||||
|
||||
extern string dnsHost;
|
||||
extern USHORT dnsPort;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#ifndef DNSHANDLER_H
|
||||
#define DNSHANDLER_H
|
||||
#include "Based.h"
|
||||
#include "SocksHelper.h"
|
||||
|
||||
namespace DNSHandler
|
||||
{
|
||||
|
||||
@@ -24,6 +24,6 @@ void udpCanReceive(ENDPOINT_ID id);
|
||||
void udpReceive(ENDPOINT_ID id, const unsigned char* target, const char* buffer, int length, PNF_UDP_OPTIONS options);
|
||||
void udpClosed(ENDPOINT_ID id, PNF_UDP_CONN_INFO info);
|
||||
|
||||
void udpReceiveHandler(ENDPOINT_ID id, SocksHelper::PUDP conn, PNF_UDP_OPTIONS options);
|
||||
void udpReceiveHandler(ENDPOINT_ID id, SocksHelper::PUDP remote, PNF_UDP_OPTIONS options);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user