-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mdns discovery fix. adapter always zstack #763
Conversation
checking for auto makes no sense because in this case the hasOwnProperty(serialPortOptions.adapter) check will still fail. |
src/adapter/adapter.ts
Outdated
resolve(new adapter(networkOptions, serialPortOptions, backupPath, adapterOptions, logger)); | ||
|
||
if (adapterLookup.hasOwnProperty(serialPortOptions.adapter) | ||
&& serialPortOptions.adapter !== 'auto') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adapterLookup
doesn't contain auto
so the serialPortOptions.adapter !== 'auto'
statement is not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! |
Mdns discovery only worked with zstack adapters. This PR fixes this bug and the adapter will be taken from the mdns configuration