Commit Graph
639 Commits
Author SHA1 Message Date
Max Lv 205eaa95ad Fix tx/rx order for android RPC 2020-03-13 23:46:44 +08:00
Max Lv b5840e31bc Fix the domain match 2020-03-13 23:46:44 +08:00
Max Lv be0bca7463 Ensure socket is protected before connecting 2020-03-13 23:46:44 +08:00
Max Lv f4c89534c8 Refine message id 2020-03-13 23:46:44 +08:00
Max Lv 0d06556e34 Enable dns-relay only for Android 2020-03-13 23:46:44 +08:00
zonyitoo 695bd7ad8c Make clippy happy 2020-03-13 02:02:39 +08:00
zonyitoo 0b085f1886 Code cleanup and add command line argument dependencies 2020-03-13 01:55:30 +08:00
zonyitoo 330c651861 Get TCP target address inside separated task
Refactored redir trait define
2020-03-13 00:08:12 +08:00
Max Lv 7d099b27bb Add DNS relay 2020-03-12 23:48:31 +08:00
zonyitoo 8a92b5c1ba Refactor redir and support pf on bsd-like systems 2020-03-11 22:38:41 +08:00
zonyitoo 2d777ce6bb Servers created by ssmanager should derive mode config
ref #201
2020-03-08 09:52:30 +08:00
zonyitoo c2b9001ce5 Remove unnecessary unsafe 2020-03-02 23:39:09 +08:00
zonyitoo 5d589ba591 Update ACL document 2020-03-02 22:32:50 +08:00
zonyitoo 1204d58161 Expose shadowsocks server client
ref #199
2020-03-02 22:15:38 +08:00
zonyitoo 293896f7e8 TcpStream does not have flush() 2020-03-02 22:09:54 +08:00
zonyitoo ee92e6414b Pin future on stack 2020-03-02 22:08:01 +08:00
zonyitoo 7d1e625d3a Refactor and support Android's flow statistic report
ref shadowsocks/shadowsocks-android#2452
2020-03-02 21:45:21 +08:00
zonyitoo 37003381b4 Fixed warning 2020-03-01 14:50:44 +08:00
zonyitoo 42ef48be3d Encapsulate port() in Address 2020-03-01 14:42:38 +08:00
zonyitoo b5e7a77e2f Refine protecting socket logic 2020-03-01 14:36:06 +08:00
Max Lv dd888ebba2 Replace net2 with socket2 2020-03-01 14:05:45 +08:00
Max Lv c963673642 Refine tcp_stream_connect() function 2020-03-01 14:05:45 +08:00
Max Lv df5c5b7917 Fix Windows build 2020-03-01 14:05:45 +08:00
Max Lv 8b9ff6d96b Clean up 2020-03-01 14:05:45 +08:00
Max Lv b69be24ffb Refine interfaces and ACL for Android 2020-03-01 14:05:45 +08:00
Max Lv 4e0885b790 Force to redirect TCP traffic to dest 53 port (for Android) 2020-03-01 14:05:45 +08:00
Max Lv 0989444c48 Protect UDPSocket as well 2020-03-01 14:05:45 +08:00
Max Lv 3cf2157316 Protect TcpStream in Android 2020-03-01 14:05:45 +08:00
zonyitoo 391b47a923 Remove Arc for most cases 2020-02-27 23:09:50 +08:00
zonyitoo 778c311e63 Optimized ACL IP searching with Trie Tree
Ref: shadowsocks/shadowsocks-android#2452
2020-02-27 03:43:41 +08:00
zonyitoo 924b9b0202 Remove confusing log in HTTP local 2020-02-26 23:26:22 +08:00
zonyitoo 6f8c0238ea Adding connect timeout for bypass connections 2020-02-26 23:02:24 +08:00
zonyitoo 5b77751144 Uses Table cipher and aes-128-gcm for test 2020-02-24 13:31:52 +08:00
zonyitoo 2139b356b4 Disable tests related to aes-cfb 2020-02-24 10:19:06 +08:00
zonyitoo 8b5eaf5eaf Add ACL example 2020-02-24 10:07:36 +08:00
zonyitoo d55fdbecfa Add ACL in README 2020-02-24 09:44:21 +08:00
Max Lv 8fefe0ce99 Fix the build without trust-dns 2020-02-24 09:42:42 +08:00
zonyitoo f557b29b31 Fixed CryptoStream thread safe issue, optimized code structure, hide proxy connection functions 2020-02-24 01:48:27 +08:00
zonyitoo d75329e149 Print available ciphers in command line 2020-02-24 01:24:42 +08:00
zonyitoo b91048b73a Support ACL for UDP relays 2020-02-24 00:46:28 +08:00
zonyitoo 2b2d5beb8e All TCP relay variants are now support ACL
FIXME: ACL checking requires one more DNS resolving request (may be
cached by trust-dns)
2020-02-23 21:48:31 +08:00
Max Lv 8ca9d0ada4 Disable set_nofile in Android build
RLIMT_NOFILE is private in Android system.
2020-02-23 21:21:21 +08:00
zonyitoo 51dd8f5fcd Optimized ip network with binary search 2020-02-23 14:57:59 +08:00
zonyitoo 806f44244a Support ACL rules in server (both TCP and UDP)
ref: shadowsocks/shadowsocks-android#2452

Reformatted logs
2020-02-23 13:42:54 +08:00
zonyitoo 76bde20fe6 Refactored and ready for adding ACL rules
BREAKING: Removed forbidden_ip in configuration file
2020-02-23 01:43:48 +08:00
zonyitoo dfc0be7e34 Make clippy happy, optimizing code structure 2020-02-23 00:27:02 +08:00
zonyitoo 07a5eac1c2 Clear Hop-to-Hop headers, and support transparent proxy
* Removes hop only headers to prevent ambiguous
* Only allow HTTP 1.x requests
* Allow requesting with Host header
2020-02-14 01:44:10 +08:00
zonyitoo 784d54c7f9 read_system_conf returns ResolverResult on Windows 2020-02-13 01:13:07 +08:00
zonyitoo 064c5ac757 Fallback to tokio resolver if trust-dns initialize failed 2020-02-12 10:41:11 +08:00
zonyitoo 8039fc1ba8 Removed stat support in manager, which is useless 2020-02-11 21:03:42 +08:00