Skip to content

Commit

Permalink
gadget: Integrate TunnelInterfaceObserver
Browse files Browse the repository at this point in the history
So we listen on Apple's CoreDevice tunnel network interfaces on iOS and
tvOS.
  • Loading branch information
oleavr committed Jul 2, 2024
1 parent f53230b commit cbcb7f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/gadget/gadget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,8 @@ namespace Frida.Gadget {
var endpoint_params = new EndpointParameters (interaction.address, interaction.port,
parse_certificate (interaction.certificate, location), interaction.origin, auth_service, asset_root);

service = new WebService (endpoint_params, CONTROL, interaction.on_port_conflict);
service = new WebService (endpoint_params, WebServiceFlavor.CONTROL, interaction.on_port_conflict,
new TunnelInterfaceObserver ());
service.incoming.connect (on_incoming_connection);
yield service.start (io_cancellable);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/gadget/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ raw_gadget = shared_library('frida-gadget-raw', gadget_sources,
link_depends: extra_link_depends,
vs_module_defs: 'frida-gadget.def',
override_options: ['b_asneeded=true'],
dependencies: [gio_dep, gee_dep, json_glib_dep, gum_dep, gumjs_dep, base_dep, tls_provider_dep, payload_dep] + platform_deps,
dependencies: [gio_dep, gee_dep, json_glib_dep, gum_dep, gumjs_dep, base_dep, netif_dep, tls_provider_dep, payload_dep] + platform_deps,
)

operations = [
Expand Down

0 comments on commit cbcb7f3

Please sign in to comment.