From: Francis Dupont Date: Wed, 24 Mar 2021 21:42:40 +0000 (+0100) Subject: [#1663] Added an error for HTTPS vs Python2 X-Git-Tag: Kea-1.9.6~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c712fccdc5cd9c76ab3741b63f1238ee9ebaa0d6;p=thirdparty%2Fkea.git [#1663] Added an error for HTTPS vs Python2 --- diff --git a/src/bin/shell/kea_connector2.py b/src/bin/shell/kea_connector2.py index 47275ae3fc..e4c90004f9 100644 --- a/src/bin/shell/kea_connector2.py +++ b/src/bin/shell/kea_connector2.py @@ -15,6 +15,10 @@ from kea_conn import CAResponse # CARequest def send_to_control_agent(params): """ Sends a request to Control Agent, receives a response and returns it.""" + # No HTTP support. + if params.ca or params.cert: + raise NotImplementedError('Python2 kea-shell does not support HTTPS') + # Establish HTTP connection first. conn = httplib.HTTPConnection(params.http_host, params.http_port) conn.connect()