From bd091906ac73a2c63ce5569151970d78ce2d6985 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 13 Dec 2022 17:15:54 +0100 Subject: [PATCH] Fix OSC/liblo zeroconf, properly query server URL --- libs/surfaces/osc/osc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 86c5903c90..ad093830bf 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -244,9 +244,11 @@ OSC::start () } #endif - PBD::info << "OSC @ " << get_server_url () << endmsg; + std::string server_url (get_server_url ()); - _zeroconf = new ZeroConf ("_osc._udp", _port, lo_address_get_hostname (_osc_server)); + PBD::info << "OSC @ " << server_url << endmsg; + + _zeroconf = new ZeroConf ("_osc._udp", _port, lo_url_get_hostname (server_url.c_str())); std::string url_file;