René's URL Explorer Experiment


Title: `parsed_scoped_addresses()` may return link-local IPv6 addresses with `%0` as the scope id. · Issue #1361 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: `parsed_scoped_addresses()` may return link-local IPv6 addresses with `%0` as the scope id. · Issue #1361 · python-zeroconf/python-zeroconf

X Title: `parsed_scoped_addresses()` may return link-local IPv6 addresses with `%0` as the scope id. · Issue #1361 · python-zeroconf/python-zeroconf

Description: OS: Ubuntu 22.04.3 LTS Python: 3.10.12 (though the issue occurs with 3.12 as well.) zeroconf: 0.131.0 Hi all, I've noticed that the parsed_scoped_addresses() will sometimes return IPv6 addresses with the scope ID uninitialized, e.g. fe80...

Open Graph Description: OS: Ubuntu 22.04.3 LTS Python: 3.10.12 (though the issue occurs with 3.12 as well.) zeroconf: 0.131.0 Hi all, I've noticed that the parsed_scoped_addresses() will sometimes return IPv6 addresses wi...

X Description: OS: Ubuntu 22.04.3 LTS Python: 3.10.12 (though the issue occurs with 3.12 as well.) zeroconf: 0.131.0 Hi all, I've noticed that the parsed_scoped_addresses() will sometimes return IPv6 addresse...

Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1361

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`parsed_scoped_addresses()` may return link-local IPv6 addresses with `%0` as the scope id.","articleBody":"OS: Ubuntu 22.04.3 LTS\r\nPython: 3.10.12 (though the issue occurs with 3.12 as well.)\r\nzeroconf: 0.131.0\r\n\r\nHi all,\r\n\r\nI've noticed that the `parsed_scoped_addresses()` will _sometimes_ return IPv6 addresses with the scope ID uninitialized, e.g. `fe80::be0f:a7ff:fe00:8a54%0`.\r\n\r\nWhen using the address this naturally results in an invalid argument (errno 22) `OSError` (e.g. from `socket.connect`.)\r\n\r\nHere's some code I've been using to replicate the issue. (Naturally, replicating the issue requires that there be some services on the network matching those specified in the code.) Any idea what I'm doing wrong?\r\n\r\n```\r\nimport time\r\nfrom zeroconf import ServiceBrowser, ServiceListener, Zeroconf, InterfaceChoice, IPVersion\r\n\r\nclass MyListener(ServiceListener):\r\n\r\n    def __init__(self):\r\n        self.address_cache_ = {}\r\n\r\n    def update_service(self, zc: Zeroconf, type_: str, name: str) -\u003e None:\r\n        pass\r\n\r\n    def remove_service(self, zc: Zeroconf, type_: str, name: str) -\u003e None:\r\n        pass\r\n\r\n    def add_service(self, zc: Zeroconf, type_: str, name: str) -\u003e None:\r\n        info = zc.get_service_info(type_, name)\r\n        if info:\r\n            print(info.parsed_scoped_addresses())\r\n\r\nzeroconf = Zeroconf(InterfaceChoice.All, False, IPVersion.All)\r\nlistener = MyListener()\r\nbrowser = ServiceBrowser(zeroconf, [\"_roger._tcp.local.\", \"_ouster-lidar._tcp.local.\"], listener)\r\ntime.sleep(10)\r\nzeroconf.close()\r\n```\r\n\r\nHere is some output from the script showing the addresses with the uninitialized scope ids:\r\n\r\n```\r\n['\u003credacted\u003e.65', 'fe80::be0f:a7ff:fe00:8a98%0', '\u003credacted\u003e:8a98']\r\n['\u003credacted\u003e.65', 'fe80::be0f:a7ff:fe00:8a98%0', '\u003credacted\u003e:8a98']\r\n['\u003credacted\u003e.124', 'fe80::be0f:a7ff:fe00:8a54%0', '\u003credacted\u003e:8a54']\r\n['\u003credacted\u003e.124', 'fe80::be0f:a7ff:fe00:8a54%0', '\u003credacted\u003e:8a54']\r\n['\u003credacted\u003e.149']\r\n['\u003credacted\u003e.149']\r\n['\u003credacted\u003e.24', 'fe80::be0f:a7ff:fe00:8a20%0', '\u003credacted\u003e:8a20']\r\n['\u003credacted\u003e.24', 'fe80::be0f:a7ff:fe00:8a20%0', '\u003credacted\u003e:8a20']\r\n['\u003credacted\u003e.200', 'fe80::be0f:a7ff:fe00:9bd9%0', '\u003credacted\u003e:9bd9']\r\n['\u003credacted\u003e.200', 'fe80::be0f:a7ff:fe00:9bd9%0', '\u003credacted\u003e:9bd9']\r\n['\u003credacted\u003e.114', 'fe80::be0f:a7ff:fe00:83bc%0', '\u003credacted\u003e:83bc']\r\n['\u003credacted\u003e.114', 'fe80::be0f:a7ff:fe00:83bc%0', '\u003credacted\u003e:83bc']\r\n['\u003credacted\u003e.184', 'fe80::be0f:a7ff:fe00:8be5%0', '\u003credacted\u003e:8be5']\r\n['\u003credacted\u003e.184', 'fe80::be0f:a7ff:fe00:8be5%0', '\u003credacted\u003e:8be5']\r\n```","author":{"url":"https://github.com/twslankard","@type":"Person","name":"twslankard"},"datePublished":"2024-02-14T01:29:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1361/python-zeroconf/issues/1361"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c37a33c9-b7d3-3c5e-355d-409ade4e80ac
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC320:1AD3B8:FFDC87:156A043:69732821
html-safe-noncebe1a2fed5a7a8f7ddad11bcb92fc72f44913da1d5a4507d86b089fbd175ac8ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzIwOjFBRDNCODpGRkRDODc6MTU2QTA0Mzo2OTczMjgyMSIsInZpc2l0b3JfaWQiOiIyNDIzMTkwOTI3NzgyOTE0MDgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7afbc4784d80e2e15835c0caea29d154014901292f0785ba98fa408bf277a5d9
hovercard-subject-tagissue:2133396432
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1361/issue_layout
twitter:imagehttps://opengraph.githubassets.com/18c04bf0fd808f0b82186ea603e1ad348d51cd1826f09b266de7b8863239538c/python-zeroconf/python-zeroconf/issues/1361
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/18c04bf0fd808f0b82186ea603e1ad348d51cd1826f09b266de7b8863239538c/python-zeroconf/python-zeroconf/issues/1361
og:image:altOS: Ubuntu 22.04.3 LTS Python: 3.10.12 (though the issue occurs with 3.12 as well.) zeroconf: 0.131.0 Hi all, I've noticed that the parsed_scoped_addresses() will sometimes return IPv6 addresses wi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametwslankard
hostnamegithub.com
expected-hostnamegithub.com
None44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4
turbo-cache-controlno-preview
go-importgithub.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git
octolytics-dimension-user_id120192235
octolytics-dimension-user_loginpython-zeroconf
octolytics-dimension-repository_id21548731
octolytics-dimension-repository_nwopython-zeroconf/python-zeroconf
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21548731
octolytics-dimension-repository_network_root_nwopython-zeroconf/python-zeroconf
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea5e2b48bd1260476599758f5d253b5d24092ab84
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-zeroconf/python-zeroconf/issues/1361#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1361
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1361
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-zeroconf%2Fpython-zeroconf
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1361
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1361
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1361
python-zeroconf https://github.com/python-zeroconf
python-zeroconfhttps://github.com/python-zeroconf/python-zeroconf
Notifications https://github.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Fork 232 https://github.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Star 704 https://github.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Code https://github.com/python-zeroconf/python-zeroconf
Issues 50 https://github.com/python-zeroconf/python-zeroconf/issues
Pull requests 5 https://github.com/python-zeroconf/python-zeroconf/pulls
Discussions https://github.com/python-zeroconf/python-zeroconf/discussions
Actions https://github.com/python-zeroconf/python-zeroconf/actions
Projects 0 https://github.com/python-zeroconf/python-zeroconf/projects
Wiki https://github.com/python-zeroconf/python-zeroconf/wiki
Security 0 https://github.com/python-zeroconf/python-zeroconf/security
Insights https://github.com/python-zeroconf/python-zeroconf/pulse
Code https://github.com/python-zeroconf/python-zeroconf
Issues https://github.com/python-zeroconf/python-zeroconf/issues
Pull requests https://github.com/python-zeroconf/python-zeroconf/pulls
Discussions https://github.com/python-zeroconf/python-zeroconf/discussions
Actions https://github.com/python-zeroconf/python-zeroconf/actions
Projects https://github.com/python-zeroconf/python-zeroconf/projects
Wiki https://github.com/python-zeroconf/python-zeroconf/wiki
Security https://github.com/python-zeroconf/python-zeroconf/security
Insights https://github.com/python-zeroconf/python-zeroconf/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1361
New issuehttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1361
#1367https://github.com/python-zeroconf/python-zeroconf/pull/1367
parsed_scoped_addresses() may return link-local IPv6 addresses with %0 as the scope id.https://github.com/python-zeroconf/python-zeroconf/issues/1361#top
#1367https://github.com/python-zeroconf/python-zeroconf/pull/1367
https://github.com/twslankard
https://github.com/twslankard
twslankardhttps://github.com/twslankard
on Feb 14, 2024https://github.com/python-zeroconf/python-zeroconf/issues/1361#issue-2133396432
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.