You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale-android/libtailscale
kari-ts 94f2829e7c
android: fix local endpoint parsing and add regression ifaceparse_test (#728)
Android reports interface addresses in CIDR form. Recent changes
(see 9c933a08a2 (diff-1d627686c31972e04ef60d7d301e8a2a93714c60096a50055a6bbe9aa041ca8fL105),  9c933a08a2 (diff-1d627686c31972e04ef60d7d301e8a2a93714c60096a50055a6bbe9aa041ca8fL105)) parsed addresses as CIDR prefixes, resulting in prefix base being advertised as a local endpoint.
This change:
-instead of parsing CIDR prefixes, the parser strips the /NN portion and uses netip.ParseAddr to parse the host IP only
-extracts the interface parsing into a helper in a new package to make it testable on non-Android platforms
-adds a unit test to verify that host addresses are present and prefix-base ones are not

Fixes tailscale/tailscale#16836

Signed-off-by: kari-ts <kari@tailscale.com>
5 days ago
..
ifaceparse android: fix local endpoint parsing and add regression ifaceparse_test (#728) 5 days ago
backend.go libtailscale: use b.netmon and sys.Bus consistently (#717) 2 months ago
callbacks.go android: defer taildrop selector until first taildrop attempt (#684) 5 months ago
fileops.go android: expand SAF FileOps implementation (#675) 5 months ago
interfaces.go android: fix local endpoint parsing and add regression ifaceparse_test (#728) 5 days ago
keystore.go Fix hardware key attestation support (#715) 2 months ago
localapi.go android: expand SAF FileOps implementation (#675) 5 months ago
log.go android: switch to using gomobile 2 years ago
multitun.go android: switch to using gomobile 2 years ago
net.go android: fix local endpoint parsing and add regression ifaceparse_test (#728) 5 days ago
notifier.go android: switch to using gomobile 2 years ago
store.go android: add All() to state store implementation (#673) 7 months ago
streamutil.go android: expand SAF FileOps implementation (#675) 5 months ago
syspolicy_handler.go libtailscale: use syspolicy RegisterStore rather than deprecated RegisterHandler 4 months ago
tailscale.go android: use the user-set device name before falling back to the device model (#716) 1 month ago
vpnfacade.go android: only reconfigure VPN when ready 2 years ago