diff --git a/src/networking.c b/src/networking.c index 3c754c376..f8808f08f 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2326,6 +2326,14 @@ NULL return; } + if ((options & CLIENT_TRACKING_OPTIN) && (options & CLIENT_TRACKING_OPTOUT)) + { + addReplyError(c, + "You can't specify both OPTIN mode and OPTOUT mode"); + zfree(prefix); + return; + } + enableTracking(c,redir,options,prefix,numprefix); } else if (!strcasecmp(c->argv[2]->ptr,"off")) { disableTracking(c);