Commit Graph
655 Commits
Author SHA1 Message Date
zonyitoo a8fe3b85fc Enable DNS over TLS and HTTPS by feature 2020-03-18 22:43:53 +08:00
zonyitoo e60cc485eb All paths in Config should be PathBuf 2020-03-18 22:30:44 +08:00
Max Lv d336d4b861 Make clippy happy 2020-03-17 22:24:21 +08:00
zonyitoo 792c648db3 Add local-flow-stat to control flow statistic reports in local server
ref #210
2020-03-17 22:24:21 +08:00
zonyitoo 05cdde3032 Refactor DNS relay
- Allow working in standalone mode
- Use same UDP socket for sending response packet
- Send TCP queries with ProxyStream directly

ref #213
2020-03-17 22:24:21 +08:00
zonyitoo fcf94d3804 Set ip_strategy by ipv6_first while reading from system config
ref #205
2020-03-15 23:03:06 +08:00
zonyitoo 6373040a4d Customized UnixStream for protect() RPC
ref #209
2020-03-15 23:00:52 +08:00
zonyitoo bd2fe561bc Renamed miscreant feature to aes-pmac-siv 2020-03-15 02:34:24 +08:00
zonyitoo fe7468a629 Suppress warning for platforms that doesnt have redir support 2020-03-15 02:21:22 +08:00
zonyitoo 9b383bfecb Resolve hosts to IPv6 address first
ref #205
2020-03-15 01:44:03 +08:00
Max Lv 27e74f8287 Refine China DNS 2020-03-15 01:43:30 +08:00
zonyitoo 304f265552 Local dns relay socks5 query with client
Optimized code structure and improvements
2020-03-14 20:48:40 +08:00
zonyitoo d292ed26ec Fixed bug, checking NotSupported 2020-03-14 10:56:01 +08:00
zonyitoo e97ca31e62 OpenBSD uses SO_BINDANY 2020-03-14 01:03:12 +08:00
zonyitoo 5a315eed83 Only openbsd and freebsd supports IP_ORIGDSTADDR 2020-03-14 00:59:47 +08:00
zonyitoo 666c3619f2 Add possible values in parameter help messages 2020-03-14 00:07:16 +08:00
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