Fixed handling of multiple puma endpoints and of wildcard IP addresses