A few minors issues are addressed and a new example is added#51
A few minors issues are addressed and a new example is added#51nameoftherose wants to merge 6 commits into
Conversation
|
I am not in charge of this repo, but you probably should squash all of those build commits. Also it is generally good form to add test coverage for any new lines of code. To squash the changes for the last 11 commits, from a shell with the correct branch checked out you need to do: An editor should appear. For all but the first line, at the beginning of the line change the word to squash. Save the file. Another editor should appear. This will be the new comments for the squashed commit. Probably want to delete all but the original comment. Then you need to force push the changes by: Change |
|
Thank you, I will try to. All these commits were forced on me by travis for stylistic reasons. |
|
Test coverage: My preferred way would be to revert the changes in my local work space. Then add test cases to show the error. Then add changes back in one at a time to see that the changes handle the error demonstrated by the test case. For running the test cases, there are two ways I use:
I added a bunch of test coverage on pr #45 and some more on #49, so you can look at those if you like. In general, for your error handling, you need to figure out how to source a packet which has the error condition your new code will be handling. Hopefully the owner of this repo will be back soon to pickup these various changes... Cheers, |
A few minor issues mentioned below are addressed: 1. Unicast responses are sent to the port where the query came from. This makes zeroconf compliant with RFC 6762 §6.7 enabling legacy programs like nslookup to resolve names ending in .local 2. DNSAdress Object __repr__() is modified to properly treat ipv6 addresses 3. DNSService constructor is modified to handle mixed case names 4. malformed packets sent by certain minimal mdns responders are handled (ie ignored) without throwing exceptions zcresolv.py is added to examples resolving names in the local domain
|
@stephenrauch Thank you very much for your help |
|
@nameoftherose you are welcome. Those tests look great. I remember how out of sorts I was while trying to understand the workflow the first few times I committed changes on github. Cheers, PS. You are probably going to want to squash those changes down again. |
|
Hey @nameoftherose, thanks for the patch. Would you mind cleaning the branch up? (Mainly I'm thinking about squashing related commits together and splitting some larger commits into logically-independent changes). |
strings encoded as bytes for python3 compatibility
|
This PR has gone stale, if you are still interested in merging this work, please open a new PR. Thanks 👍 |
No description provided.