mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Name resolution via TCP support
Supports _real_ name resolution via parent proxy over TCP in nserver / dnspr. Can be used to create UDP->TCP name proxy, e.g. nserver 127.0.0.1/tcp nscache 65535 auth none dnspr auth iponly tcppm 53 77.88.8.8 53 now, all names are resolved via TCP connection to 77.88.8.8 (dns.yandex.ru).
This commit is contained in:
1 parent
e3645ee971
commit
15f9f24f04
9 files changed
+96
-37
No files matched your search
+6
-1
@@ -297,6 +297,11 @@ struct trafcount {
|
||||
time_t updated;
|
||||
};
|
||||
|
||||
struct nserver {
|
||||
unsigned long ip;
|
||||
int usetcp;
|
||||
};
|
||||
|
||||
typedef void * (* PROXYFUNC)(struct clientparam *);
|
||||
|
||||
typedef enum {
|
||||
@@ -623,7 +628,7 @@ extern struct sockfuncs so;
|
||||
struct pluginlink {
|
||||
struct symbol symbols;
|
||||
struct extparam *conf;
|
||||
unsigned long *nservers;
|
||||
struct nserver *nservers;
|
||||
int * linenum;
|
||||
struct auth *authfuncs;
|
||||
struct commands * commandhandlers;
|
||||
|
||||
Reference in new issue
Block a user