mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 03:28:31 -07:00
Support custom port for Mattermost (Slack) notifications
This commit is contained in:
parent
428a5cc0ff
commit
cd417aaf44
1 changed files with 2 additions and 1 deletions
|
@ -2062,9 +2062,10 @@ class SLACK(object):
|
||||||
data['attachments'] = [attachment]
|
data['attachments'] = [attachment]
|
||||||
|
|
||||||
slackhost = urlparse(self.slack_hook).hostname
|
slackhost = urlparse(self.slack_hook).hostname
|
||||||
|
slackport = urlparse(self.slack_hook).port
|
||||||
slackpath = urlparse(self.slack_hook).path
|
slackpath = urlparse(self.slack_hook).path
|
||||||
|
|
||||||
http_handler = HTTPSConnection(slackhost)
|
http_handler = HTTPSConnection(slackhost, slackport)
|
||||||
http_handler.request("POST",
|
http_handler.request("POST",
|
||||||
slackpath,
|
slackpath,
|
||||||
headers={'Content-type': "application/json"},
|
headers={'Content-type': "application/json"},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue