Using - as IP part seperator

This commit is contained in:
WolverinDEV 2019-11-22 00:51:42 +01:00
parent cffc1e456b
commit 2c31aa7370
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ void WebDNSHandler::handle_message(const std::shared_ptr<DNSServerBinding>& bind
size_t index = 0;
size_t aindex = 0;
do {
auto found = dn.find('.', index);
auto found = dn.find('-', index);
auto length = index == -1 ? dn.length() - index : found - index;
try {