Skip to content

Commit

Permalink
Merge pull request #45 from shubazalam/main
Browse files Browse the repository at this point in the history
Permit connection to insecure ssl server
  • Loading branch information
ross authored Aug 25, 2023
2 parents 3189e9c + d04a056 commit 58b2a25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ providers:
port: 8081
# The api key that grans access (required, example is using an env var)
api_key: env/POWERDNS_API_KEY
# The URL scheme (optional, default http)
# scheme: https
# Check SSL certificate (optional, default True)
# ssl_verify: true
```

### Support Information
Expand Down
2 changes: 2 additions & 0 deletions octodns_powerdns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def __init__(
api_key,
port=8081,
scheme="http",
ssl_verify=True,
timeout=TIMEOUT,
soa_edit_api='default',
mode_of_operation='master',
Expand Down Expand Up @@ -99,6 +100,7 @@ def __init__(
'User-Agent': f'octodns/{octodns_version} octodns-powerdns/{__VERSION__}',
}
)
sess.verify = ssl_verify
self._sess = sess

self.soa_edit_api = soa_edit_api
Expand Down

0 comments on commit 58b2a25

Please sign in to comment.