Skip to content

Commit 80e75f5

Browse files
calvinhpRoach
authored andcommitted
added a host argument so you can bind to something other than localhost (#12)
1 parent 8dffc4a commit 80e75f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slackeventsapi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def __init__(self, verification_token, endpoint="/slack/events"):
1010
self.verification_token = verification_token
1111
self.server = SlackServer(verification_token, endpoint, self)
1212

13-
def start(self, port=None, debug=False):
14-
self.server.run(port=port, debug=debug)
13+
def start(self, host='127.0.0.1', port=None, debug=False):
14+
self.server.run(host=host, port=port, debug=debug)

0 commit comments

Comments
 (0)