mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Move RADIUS related code to #ifndef NORADIUS
This commit is contained in:
parent
9ac7503c4e
commit
2d1720c15f
@ -327,9 +327,11 @@ static int h_log(int argc, unsigned char ** argv){
|
|||||||
conf.logfunc = logsql;
|
conf.logfunc = logsql;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NORADIUS
|
||||||
else if(!strcmp(argv[1],"radius")){
|
else if(!strcmp(argv[1],"radius")){
|
||||||
conf.logfunc = logradius;
|
conf.logfunc = logradius;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else {
|
else {
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
if(argc > 2) {
|
if(argc > 2) {
|
||||||
@ -1274,6 +1276,7 @@ static int h_delimchar(int argc, unsigned char **argv){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef NORADIUS
|
||||||
static int h_radius(int argc, unsigned char **argv){
|
static int h_radius(int argc, unsigned char **argv){
|
||||||
unsigned short port;
|
unsigned short port;
|
||||||
|
|
||||||
@ -1309,7 +1312,7 @@ static int h_radius(int argc, unsigned char **argv){
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
static int h_authcache(int argc, unsigned char **argv){
|
static int h_authcache(int argc, unsigned char **argv){
|
||||||
conf.authcachetype = 0;
|
conf.authcachetype = 0;
|
||||||
if(strstr((char *) *(argv + 1), "ip")) conf.authcachetype |= 1;
|
if(strstr((char *) *(argv + 1), "ip")) conf.authcachetype |= 1;
|
||||||
|
@ -520,7 +520,9 @@ static void * ef_server_childcount(struct node * node){
|
|||||||
|
|
||||||
static void * ef_server_log(struct node * node){
|
static void * ef_server_log(struct node * node){
|
||||||
if(((struct srvparam *)node->value) -> logfunc == lognone) return "none";
|
if(((struct srvparam *)node->value) -> logfunc == lognone) return "none";
|
||||||
|
#ifndef NORADIUS
|
||||||
else if(((struct srvparam *)node->value) -> logfunc == logradius) return "radius";
|
else if(((struct srvparam *)node->value) -> logfunc == logradius) return "radius";
|
||||||
|
#endif
|
||||||
else if(((struct srvparam *)node->value) -> logfunc == logstdout)
|
else if(((struct srvparam *)node->value) -> logfunc == logstdout)
|
||||||
return (((struct srvparam *)node->value) -> logtarget)?"file":"stdout";
|
return (((struct srvparam *)node->value) -> logtarget)?"file":"stdout";
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
Loading…
Reference in New Issue
Block a user