wesnothd: made ipv6 addresses work with /query status/searchlog
This commit is contained in:
parent
9cc0c01b2e
commit
2912283934
1 changed files with 1 additions and 1 deletions
|
@ -2428,7 +2428,7 @@ void server::status_handler(
|
|||
}
|
||||
}
|
||||
|
||||
const bool match_ip = (std::count(parameters.begin(), parameters.end(), '.') >= 1);
|
||||
const bool match_ip = ((std::count(parameters.begin(), parameters.end(), '.') >= 1) || (std::count(parameters.begin(), parameters.end(), ':') >= 1));
|
||||
for(const auto& player : player_connections_) {
|
||||
if(parameters.empty() || parameters == "*" ||
|
||||
(match_ip && utils::wildcard_string_match(player.client_ip(), parameters)) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue