Skip to content

Commit

Permalink
Change mDNS record to note TLS support. (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstegeman authored Jun 18, 2020
1 parent c056ac3 commit 33c1361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

setup(
name='webthing',
version='0.13.1',
version='0.13.2',
description='HTTP Web Thing implementation',
long_description=long_description,
url='https://github.com/mozilla-iot/webthing-python',
Expand Down
3 changes: 3 additions & 0 deletions webthing/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,9 @@ def start(self):
'server': '{}.local.'.format(socket.gethostname()),
}

if self.app.is_tls:
kwargs['properties']['tls'] = '1'

if sys.version_info.major == 3:
kwargs['addresses'] = [socket.inet_aton(get_ip())]
else:
Expand Down

0 comments on commit 33c1361

Please sign in to comment.