diff options
author | Marvin W <git@larma.de> | 2021-11-09 22:06:50 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-11-10 11:05:34 +0100 |
commit | 0fe24c433909840a7d812630639bc13ab24f1bad (patch) | |
tree | ad8842a913b5188a7c04c6f78879143b8cc29c03 /plugins/ice | |
parent | c9194973de629a74736d7b42add8b7f3e5c5085b (diff) | |
download | dino-0fe24c433909840a7d812630639bc13ab24f1bad.tar.gz dino-0fe24c433909840a7d812630639bc13ab24f1bad.zip |
Register local ip address handler for raw udp
Diffstat (limited to 'plugins/ice')
-rw-r--r-- | plugins/ice/src/plugin.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/ice/src/plugin.vala b/plugins/ice/src/plugin.vala index f145dd6d..4abf042c 100644 --- a/plugins/ice/src/plugin.vala +++ b/plugins/ice/src/plugin.vala @@ -15,7 +15,12 @@ public class Dino.Plugins.Ice.Plugin : RootInterface, Object { list.add(new Module()); }); app.stream_interactor.stream_attached_modules.connect((account, stream) => { - stream.get_module(Socks5Bytestreams.Module.IDENTITY).set_local_ip_address_handler(get_local_ip_addresses); + if (stream.get_module(Socks5Bytestreams.Module.IDENTITY) != null) { + stream.get_module(Socks5Bytestreams.Module.IDENTITY).set_local_ip_address_handler(get_local_ip_addresses); + } + if (stream.get_module(JingleRawUdp.Module.IDENTITY) != null) { + stream.get_module(JingleRawUdp.Module.IDENTITY).set_local_ip_address_handler(get_local_ip_addresses); + } }); app.stream_interactor.stream_negotiated.connect(on_stream_negotiated); } |