mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
implement small http server for admin and testing
This commit is contained in:
1 parent
a3b40e6176
commit
3526759e59
22 files changed
+950
-254
No files matched your search
@@ -18,7 +18,13 @@ int alwaysauth(struct clientparam * param){
|
||||
|
||||
|
||||
if(conf.connlimiter && !param->connlim && startconnlims(param)) return 10;
|
||||
#ifdef WITH_HTTPSRV
|
||||
/* The http server answers the request itself, so authorization must not
|
||||
try to reach a destination that does not exist. */
|
||||
res = (param->srv->service == S_HTTPSRV)? 0 : doconnect(param);
|
||||
#else
|
||||
res = doconnect(param);
|
||||
#endif
|
||||
if(!res){
|
||||
if(conf.bandlimfunc && (conf.bandlimiter||conf.bandlimiterout)){
|
||||
_3proxy_mutex_lock(&bandlim_mutex);
|
||||
|
||||
Reference in new issue
Block a user