Skip to content

Commit

Permalink
Merge pull request #479 from tiiuae/mdm-agent-check-mdm-server-port
Browse files Browse the repository at this point in the history
MDMServer: handling of invalid port in mDNS response
  • Loading branch information
saauvine authored Oct 1, 2024
2 parents eae8cd2 + f34c78c commit 3287276
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ def __on_service_state_change(
"ipv6_addresses": info._ipv6_addresses,
"port": info.port,"status": service_available}

if service_available and info.port == None:
self.__logger.error("Service is available but port in mDNS response is None, will keep listening for more packets")
return

self.service_callback(**kwargs)


Expand Down

0 comments on commit 3287276

Please sign in to comment.