Skip to content

IP addresses change does not trigger update in browser #235

@PhilippSelenium

Description

@PhilippSelenium

Steps to reproduce

  1. Use example code from README:
from zeroconf import ServiceBrowser, Zeroconf


class MyListener:

    def remove_service(self, zeroconf, type, name):
        print("Service %s removed" % (name,))

    def add_service(self, zeroconf, type, name):
        info = zeroconf.get_service_info(type, name)
        print("Service %s added, service info: %s" % (name, info))

    def update_service(self, zeroconf, type, name):
        info = zeroconf.get_service_info(type, name)
        print("Service %s updated, service info: %s" % (name, info))

zeroconf = Zeroconf()
listener = MyListener()
browser = ServiceBrowser(zeroconf, "_http._tcp.local.", listener)
try:
    input("Press enter to exit...\n\n")
finally:
    zeroconf.close()
  1. Change IP address
    exp: An update message is printed.
    act: Nothing is printed

Notes:

  1. I can see the packets sent in wireshark.
  2. It works with version 0.24.4

zeroconf version: 0.24.5
python version: 3.6.7

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions