Commit Graph

149 Commits

Author SHA1 Message Date
Mygod
479d1bdfca Add documentation for settings 2018-12-26 11:46:58 +08:00
Mygod
e8f993944c Use poll as default monitor method
This should improve compatibility on very broken devices.
2018-12-26 10:58:16 +08:00
Mygod
9c2906944f Log a lot more about subroutings 2018-12-26 01:32:38 +08:00
Mygod
0ff12b9aa9 Handle NullPointerExceptions 2018-12-25 23:42:52 +08:00
Mygod
1cf9b7378d Support buggy devices without if_indextoname 2018-12-25 23:39:08 +08:00
Mygod
ae3aff5132 Do not keep alive by default 2018-12-24 23:22:59 +08:00
Mygod
55443902be Support Wi-Fi keep alives 2018-12-23 23:35:55 +08:00
Mygod
690b923a43 Fix parser forgetting all non-owned groups 2018-12-21 18:03:33 +08:00
Mygod
5281f14e0f Listen for persistent group changes 2018-12-21 16:04:23 +08:00
Mygod
dd2c171bb3 Suppress reporting interfaceName changes 2018-12-19 15:38:05 +08:00
Mygod
eadc2eb05f Suppress reporting expected SecurityException 2018-12-19 15:35:48 +08:00
Mygod
d8ccd47bac Refine cleaning routing rules 2018-12-19 15:32:16 +08:00
Mygod
97fb67d7fd Refine IpNeighbour parser 2018-12-19 13:05:56 +08:00
Mygod
373d45f668 Generalize ip neigh parser
Now we can rely on fewer assumptions.
2018-12-14 02:30:33 +08:00
Mygod
f26716051c Allow iptables -w to output busy spin message 2018-12-14 02:00:31 +08:00
Mygod
6ae5aba6bb Suppress reporting interface becoming null 2018-12-14 01:45:54 +08:00
Mygod
366ae7dab6 Be more careful about checking upstreams were removed 2018-12-14 00:56:28 +08:00
Mygod
c3cb26ce35 Fix inconsistent behavior in onLost 2018-12-14 00:46:46 +08:00
Mygod
6002794905 Fix warnings 2018-12-13 14:35:09 +08:00
Mygod
ac9bf38147 Discard return value and keep retrying 2018-10-25 13:44:47 +08:00
Mygod
8ec83f683f Log exit values on monitor failures 2018-10-25 13:32:03 +08:00
Mygod
e6bdbd23a9 Ensure onLost is called 2018-10-25 11:16:07 +08:00
Mygod
04acc9d75e Handle if ifname became non-null 2018-10-25 10:57:15 +08:00
Mygod
7d861e3ae3 Fix ConcurrentModificationException 2018-10-14 14:51:41 +08:00
Mygod
46f7ae7dd0 Also allow ifname changes I guess?? 2018-10-12 12:34:06 +08:00
Mygod
47366b982e Allow null interfaceName in onLinkPropertiesChanged 2018-10-10 20:15:57 +08:00
Mygod
e347115908 Add back root unavailable prompt 2018-10-08 15:23:57 +08:00
Mygod
e4e716ab83 Allow creating repeater w/o root 2018-10-08 15:17:48 +08:00
Mygod
634ac72350 Add more debugLog to investigate check failure 2018-10-08 13:35:29 +08:00
Mygod
26043bdefc Fix a deadlock in IpNeighbourMonitor 2018-10-08 13:08:48 +08:00
Mygod
a14f324a90 Allow irrelevant info in DefaultNetworkMonitor as well 2018-10-08 12:05:41 +08:00
Mygod
0d83c17b89 Known issue: client features won't work when upgrading from 1.x w/o shutting down service 2018-10-05 00:50:03 +08:00
Mygod
255cfac486 Add more locks 2018-10-05 00:45:53 +08:00
Mygod
c7e79dfb6a Allow unregister to fail
Race condition might occur when cleaning.
2018-10-04 19:45:54 +08:00
Mygod
722855caf7 Refine code 2018-10-04 16:45:44 +08:00
Mygod
89234b37a4 Create a copy before returning 2018-10-04 16:41:19 +08:00
Mygod
e85d792218 Refine IpNeighbour parsing 2018-10-04 16:34:40 +08:00
Mygod
ed1e1a581e Allow records not found in TrafficRecorder 2018-10-04 16:03:59 +08:00
Mygod
b9d5a63c23 Add synchronization in IpNeighbourMonitor 2018-10-04 15:56:24 +08:00
Mygod
e66025c746 Only care about losing one network 2018-10-04 15:50:58 +08:00
Mygod
395e5da871 Fix InvalidConfigurationError 2018-10-04 15:50:07 +08:00
Mygod
913e21328e Misc refinements 2018-10-03 15:02:07 +08:00
Mygod
c573a68ee1 Prevent creating 2 ip link monitors 2018-10-03 14:34:55 +08:00
Mygod
a4e69c5a9b Tell user when blocking won't work 2018-10-03 14:16:31 +08:00
Mygod
f7978a5a2f Handle default network changes 2018-10-03 13:58:57 +08:00
Mygod
408c84f8d7 Fix DNS not updated onLost 2018-10-03 13:54:01 +08:00
Mygod
1eb84bf1a3 Handle duplicated upstreams 2018-10-03 13:46:44 +08:00
Mygod
8e09e8cd8a Replace strict mode with fallback upstream interface
Fixes #40. Apparently we can no longer take advantage of default network rules set by Android system since Android 9.0 thanks to this commit: 758627c4d9
2018-10-03 13:02:28 +08:00
Mygod
8e3567954e Remove unused imports 2018-10-02 23:49:46 +08:00
Mygod
4de93c5c02 Move monitors to a separate package 2018-10-02 23:44:06 +08:00