diff options
author | Len Ovens <len@ovenwerks.net> | 2017-05-10 14:13:47 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-05-10 14:14:27 -0700 |
commit | 0124c2e99d83cf44eedb1b737a37b44bf5d820b8 (patch) | |
tree | 1a69116580d97f9a863b86d97c1b93f4db901983 | |
parent | c0b54e868fea0eb3b8a940e680aebc655486e5c3 (diff) |
OSC: fix manual port setting to take effect on first incoming message
-rw-r--r-- | libs/surfaces/osc/osc.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index f6c89005b7..d93e696a2a 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1401,6 +1401,12 @@ OSC::get_surface (lo_address addr) { string r_url; char * rurl; + if (address_only) { + string host = lo_address_get_hostname (addr); + int protocol = lo_address_get_protocol (addr); + addr = lo_address_new_with_proto (protocol, host.c_str(), remote_port.c_str()); + } + rurl = lo_address_get_url (addr); r_url = rurl; free (rurl); |