You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IP addresses change does not trigger update in browser #235
It’s is sort of by design that it doesn’t change with a changed IP address. We do need to change it so it triggers on SRV update though so I do appreciate this is both a regression and needs fixing, but I’d rather forward fix it to trigger on the SRV change as you suggest.
Sorry, no I meant that the code was never designed to deal with an IP address change. The older code just got ‘lucky’, presumably
because a spurious txt update came through. We should explicitly recognise SRV changes though, so that is the right change to make.
There is a possibility that my fix here is a breaking change as UpdateService used to get called on service addition. I feel this is wrong and was a mistake.
Activity
jstasiak commentedon Apr 3, 2020
I narrowed this down to #228, cc @mattsaxon, I'll try to see if there's something obvious that I can fix quickly.
jstasiak commentedon Apr 3, 2020
I think this is because
ServiceBrowser.update_record()only triggersServiceStateChangeonPTRandTXTrecord updates: https://github.com/jstasiak/python-zeroconf/blob/a79015e7c4bdc843d97bd5c82ef8ed4eeae01a34/zeroconf/__init__.py#L1428mattsaxon commentedon Apr 3, 2020
It’s is sort of by design that it doesn’t change with a changed IP address. We do need to change it so it triggers on SRV update though so I do appreciate this is both a regression and needs fixing, but I’d rather forward fix it to trigger on the SRV change as you suggest.
jstasiak commentedon Apr 3, 2020
Just so I understand – is it by design in relation to any part of RFC 6762 or 6763?
mattsaxon commentedon Apr 3, 2020
Sorry, no I meant that the code was never designed to deal with an IP address change. The older code just got ‘lucky’, presumably
because a spurious txt update came through. We should explicitly recognise SRV changes though, so that is the right change to make.
mattsaxon commentedon Apr 3, 2020
Assign this and the other regression to
me and I’ll sort them out when I get a chance
emontnemery commentedon Apr 6, 2020
Since this is a regression from #228, can #228 be reverted until IP address change is handled correctly?
mattsaxon commentedon Apr 6, 2020
I should have forward fix available by end of today
Call UpdateService on SRV & A/AAAA updates as well as TXT
mattsaxon commentedon Apr 6, 2020
There is a possibility that my fix here is a breaking change as UpdateService used to get called on service addition. I feel this is wrong and was a mistake.
jstasiak commentedon Apr 6, 2020
Yeah I noticed that too, I agree this seems wrong and I'd say let's fix this.
Call UpdateService on SRV & A/AAAA updates as well as TXT (#239)
jstasiak commentedon Apr 26, 2020
Fix released in version 0.26.0.