Gateway and device are on different network segments, startDNSDiscovery does not work

I have to view the thing-url-adapter source code。 And know that mdns does not support different network segments.

function loadThingURLAdapter(addonManager, manifest, _errorCallback) {
  const adapter = new ThingURLAdapter(addonManager, manifest.name);

  for (const url of manifest.moziot.config.urls) {
    adapter.loadThing(url);
  }

  startDNSDiscovery(adapter);
}

module.exports = loadThingURLAdapter;

Now, How to automate loadThing/unloadThing for manifest.moziot.config.urls devices ?

In your UI, navigate to Settings -> Add-ons. Find the entry for “Web Thing” and click the Configure button. Add your URLs, then click Apply.