Skip to content

Commit

Permalink
Merge pull request #65 from plesk/CPCLOUD-2389-the-certifi-module-bre…
Browse files Browse the repository at this point in the history
…aks-the-normal-work-of-agent-360

[CPCLOUD-2389] The certifi module breaks the normal work of agent360
  • Loading branch information
ktak-007 authored Jul 24, 2023
2 parents b3547f7 + 12d3f2b commit 2470e03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions agent360/agent360.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from urllib import urlencode
from urllib2 import urlopen, Request, HTTPError

__version__ = '1.2.45'
__version__ = '1.2.46'
__FILEABSDIRNAME__ = os.path.dirname(os.path.abspath(__file__))

ini_files = (
Expand Down Expand Up @@ -551,7 +551,7 @@ def _data(self):
else:

try:
ctx = ssl.create_default_context(cadata=certifi.contents())
ctx = ssl.create_default_context(cafile=certifi.where())

if sys.version_info >= (3,):
connection = http.client.HTTPSConnection(api_host, context=ctx, timeout=15)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

setuptools.setup(
name='agent360',
version='1.2.45',
version='1.2.46',
description='360 agent',
long_description_content_type='text/markdown',
long_description=readme,
Expand Down
2 changes: 1 addition & 1 deletion windows/setup.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MyAppName "Agent360"
#define MyAppVersion "1.2.45"
#define MyAppVersion "1.2.46"
#define MyAppPublisher "360 Monitoring"
#define MyAppURL "https://360monitoring.io/"

Expand Down

0 comments on commit 2470e03

Please sign in to comment.