This permits to specify an exact IPv6 address (or address-range) to accept
without needing a much complicated regex using ranges.
char* cp;
bool userandhost = false;
for (cp = line; *cp && *cp != ':'; cp++)
- if (*cp == '@') userandhost = true;
+ if (*cp == '\\' && *(cp+1)) // skip check of next char unless it's end of string
+ cp++;
+ else if (*cp == '@')
+ userandhost = true;
const char* base = &line[line[0] == '!'];
fxStr pattern(base, cp-base);