Skip to content

Commit

Permalink
tunnel-interface-observer: Fix confusing variable name
Browse files Browse the repository at this point in the history
The tunnel isn't only for development tools.
  • Loading branch information
oleavr committed Jul 3, 2024
1 parent cbcb7f3 commit 29ec9f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/netif/tunnel-interface-observer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public class Frida.TunnelInterfaceObserver : Object, DynamicInterfaceObserver {
foreach (var raw_address in CFArray.wrap<CoreFoundation.String> (val[addresses_str])) {
var str = raw_address.to_string ();
bool is_reserved_ipv6_range = str.has_prefix ("fc") || str.has_prefix ("fd");
bool is_devtunnel = is_reserved_ipv6_range && str.has_suffix ("::1");
if (is_devtunnel) {
bool is_tunnel = is_reserved_ipv6_range && str.has_suffix ("::1");
if (is_tunnel) {
address = new InetAddress.from_string (str);
break;
}
Expand Down

0 comments on commit 29ec9f0

Please sign in to comment.