Skip to content

Commit 33c1361

Browse files
authored
Change mDNS record to note TLS support. (#75)
1 parent c056ac3 commit 33c1361

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
setup(
3434
name='webthing',
35-
version='0.13.1',
35+
version='0.13.2',
3636
description='HTTP Web Thing implementation',
3737
long_description=long_description,
3838
url='https://github.com/mozilla-iot/webthing-python',

webthing/server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,9 @@ def start(self):
866866
'server': '{}.local.'.format(socket.gethostname()),
867867
}
868868

869+
if self.app.is_tls:
870+
kwargs['properties']['tls'] = '1'
871+
869872
if sys.version_info.major == 3:
870873
kwargs['addresses'] = [socket.inet_aton(get_ip())]
871874
else:

0 commit comments

Comments
 (0)