File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11** /node_modules /
2+ /.eslintrc.js
23tmp /
Original file line number Diff line number Diff line change 3333 run : |
3434 npm install
3535 - name : Lint with eslint
36+ if : ${{ matrix.node-version >= 10 }}
3637 run : |
3738 npm run lint
3839 - name : Run integration tests
Original file line number Diff line number Diff line change @@ -810,15 +810,22 @@ class WebThingServer {
810810 * @returns {Promise } Promise which resolves once the server is started.
811811 */
812812 start ( ) {
813+ const opts = {
814+ name : this . name ,
815+ txt : {
816+ path : '/' ,
817+ } ,
818+ } ;
819+
820+ if ( this . app . isTls ) {
821+ opts . txt . tls = '1' ;
822+ }
823+
813824 this . mdns = new dnssd . Advertisement (
814825 new dnssd . ServiceType ( '_webthing._tcp' ) ,
815826 this . port ,
816- {
817- name : this . name ,
818- txt : {
819- path : '/' ,
820- } ,
821- } ) ;
827+ opts
828+ ) ;
822829 this . mdns . on ( 'error' , ( e ) => {
823830 console . debug ( `mDNS error: ${ e } ` ) ;
824831 setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments