]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3141] fix compilation error
authorPiotrek Zadroga <piotrek@isc.org>
Thu, 22 Feb 2024 14:16:20 +0000 (15:16 +0100)
committerPiotrek Zadroga <piotrek@isc.org>
Fri, 23 Feb 2024 16:14:41 +0000 (17:14 +0100)
src/lib/dhcp/option4_dnr.cc

index 3564612a32dc516418c10b143ba8737279c3c716..a1b5b9b215d59776c8be40c48905468c543f6fd1 100644 (file)
@@ -720,7 +720,7 @@ DnrInstance::parseDnrInstanceConfigData(const std::string& config_txt) {
                     }
 
                     // Make notice if this is any of http alpn-ids.
-                    if (alpn_id.starts_with('h')) {
+                    if (alpn_id[0] == 'h') {
                         alpn_http_ = true;
                     }