mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 17:22:56 -07:00
Add port to Slack connection when used with Mattermost
This commit is contained in:
parent
4dce0ec015
commit
e34472084c
1 changed files with 2 additions and 1 deletions
|
@ -2534,9 +2534,10 @@ class SLACK(Notifier):
|
|||
data['attachments'] = [attachment]
|
||||
|
||||
host = urlparse(self.config['hook']).hostname
|
||||
port = urlparse(self.config['hook']).port
|
||||
path = urlparse(self.config['hook']).path
|
||||
|
||||
http_handler = HTTPSConnection(host)
|
||||
http_handler = HTTPSConnection(host, port)
|
||||
http_handler.request("POST",
|
||||
path,
|
||||
headers={'Content-type': "application/json"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue