diff options
Diffstat (limited to 'src/server/globals.c')
-rw-r--r-- | src/server/globals.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/globals.c b/src/server/globals.c index ac3f279..4f081c7 100644 --- a/src/server/globals.c +++ b/src/server/globals.c @@ -13,6 +13,7 @@ int _shutdown = 0; int _serverPenalty = 0; int _clientPenalty = 0; int _isProxy = FALSE; +int _proxyPrivateOnly = FALSE; #define SAVE_TO_VAR_STR(ss, kk) do { if (strcmp(section, #ss) == 0 && strcmp(key, #kk) == 0) { if (_ ## kk != NULL) free(_ ## kk); _ ## kk = strdup(value); } } while (0) #define SAVE_TO_VAR_BOOL(ss, kk) do { if (strcmp(section, #ss) == 0 && strcmp(key, #kk) == 0) _ ## kk = atoi(value) != 0 || strcmp(value, "true") == 0 || strcmp(value, "True") == 0 || strcmp(value, "TRUE") == 0; } while (0) @@ -23,6 +24,7 @@ static int ini_handler(void *custom, const char* section, const char* key, const if ( _basePath == NULL ) SAVE_TO_VAR_STR( dnbd3, basePath ); SAVE_TO_VAR_BOOL( dnbd3, vmdkLegacyMode ); SAVE_TO_VAR_BOOL( dnbd3, isProxy ); + SAVE_TO_VAR_BOOL( dnbd3, proxyPrivateOnly ); SAVE_TO_VAR_INT( dnbd3, serverPenalty ); SAVE_TO_VAR_INT( dnbd3, clientPenalty ); return TRUE; |