Title: Using sub type, avahi-browse does not show filtered on type. Is sub type implementation correct? · Issue #304 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Using sub type, avahi-browse does not show filtered on type. Is sub type implementation correct? · Issue #304 · python-zeroconf/python-zeroconf
X Title: Using sub type, avahi-browse does not show filtered on type. Is sub type implementation correct? · Issue #304 · python-zeroconf/python-zeroconf
Description: Using avahi-browseon a Ubuntu 18.04 I want to check that my service publishing works. With avahi-browse -ar I expect to see all services. With avahi-browse -r _zmq._tcp I expect to see only services of type _zmq._tcp including those with...
Open Graph Description: Using avahi-browseon a Ubuntu 18.04 I want to check that my service publishing works. With avahi-browse -ar I expect to see all services. With avahi-browse -r _zmq._tcp I expect to see only service...
X Description: Using avahi-browseon a Ubuntu 18.04 I want to check that my service publishing works. With avahi-browse -ar I expect to see all services. With avahi-browse -r _zmq._tcp I expect to see only service...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/304
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using sub type, avahi-browse does not show filtered on type. Is sub type implementation correct?","articleBody":"Using `avahi-browse`on a Ubuntu 18.04 I want to check that my service publishing works.\r\nWith `avahi-browse -ar` I expect to see all services.\r\nWith `avahi-browse -r _zmq._tcp` I expect to see only services of type `_zmq._tcp` including those with a sub type.\r\n \r\nTo test this I do `avahi-publish-service --subtype=_foo._sub._zmq._tcp foo _zmq._tcp 9099` and the above commands show as expected.\r\n\r\nI then use the following code to publish a service with sub type with python 3.7 and zeroconf 0.28.4:\r\n\u003cpre>\r\nfrom zeroconf import IPVersion, Zeroconf, ServiceInfo\r\nimport socket\r\n\r\nif __name__ == \"__main__\":\r\n\r\n zeroconf = Zeroconf(ip_version=IPVersion.All)\r\n service_info = ServiceInfo(f\"_bar._sub._zmq._tcp.local.\",\r\n f\"bar._zmq._tcp.local.\",\r\n port=int(9090),\r\n server=f\"{socket.gethostname()}.local.\"\r\n )\r\n\r\n zeroconf.register_service(service_info, allow_name_change=True)\r\n try:\r\n input(\"Press enter to exit...\\n\\n\")\r\n finally:\r\n zeroconf.unregister_all_services()\r\n zeroconf.close()\r\n\u003c/pre>\r\n\r\n`avahi-browse -ar`will show the service..\r\n `avahi-browse -r _zmq._tcp` will **not**.\r\n\r\nThere don't seem to be many people using sub type and the documentation is rather short.\r\nDid I do something wrong in my code?","author":{"url":"https://github.com/khan-git","@type":"Person","name":"khan-git"},"datePublished":"2020-09-14T08:18:39Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/304"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b4a0cb3-e4b6-e5b2-cd10-d46aac72d3e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E918:395091:C6F28:10C91C:6B008018 |
| html-safe-nonce | eb80d0f2ca2e10196684efb9bf0e423722fdeeb0c587dbadbc809a6ec7fab89d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTE4OjM5NTA5MTpDNkYyODoxMEM5MUM6NkIwMDgwMTgiLCJ2aXNpdG9yX2lkIjoiMzUyMDg1NzgxOTg4NjY4MjEzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3683d4636adfef9134ea9afef9069bc7f9ff87b9bf375944a01606fe9b87e9f0 |
| hovercard-subject-tag | issue:700883877 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/304/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68f17240f10061104d04331095f676cb803c39660a88d7ebcd7c53d0e902f595/python-zeroconf/python-zeroconf/issues/304 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68f17240f10061104d04331095f676cb803c39660a88d7ebcd7c53d0e902f595/python-zeroconf/python-zeroconf/issues/304 |
| og:image:alt | Using avahi-browseon a Ubuntu 18.04 I want to check that my service publishing works. With avahi-browse -ar I expect to see all services. With avahi-browse -r _zmq._tcp I expect to see only service... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | khan-git |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width