185 Commits
Author SHA1 Message Date
Gyt 84b157e866 add server port in log file 2018-11-26 21:16:25 +08:00
Max Lv 46ff0a8045 Refine #2162 2018-09-02 17:27:59 -07:00
Max Lv dd5e954ab4 Clean up 2018-09-02 17:21:23 -07:00
Linus Yang 2ed8791dab Re-add support for MinGW 2018-03-08 17:26:11 +08:00
Max Witten e7ad7fc73e udprelay: display mtu at least size 2018-03-05 21:37:12 +08:00
Max Lv 8acbe68e66 Fix #1915 2018-02-11 08:42:07 +08:00
Max Lv 85a64ae836 Bump version 2018-01-15 17:25:03 -08:00
Max Lv 29ff5d3f89 Avoid overwriting dst_addr 2018-01-13 09:17:18 +08:00
Max Lv 569b27a73f Clean up 2018-01-12 22:37:41 +08:00
Max Lv 9ca33a64c7 Refine the UDP response header 2018-01-12 22:15:33 +08:00
Max Lv c11e70aa8a Reconstruct src addr for P2P usage 2018-01-12 22:00:43 +08:00
Max Lv 2bf7ecc787 Log the mismatched header as an error 2018-01-12 21:18:21 +08:00
Max Lv 68abd2a274 Fix a header mismatch issue in udp relay 2018-01-12 21:39:09 +08:00
Max Lv 56498cb548 Refine log output 2018-01-12 20:39:52 +08:00
Max Lv 1d94442546 Refine udp header checking 2018-01-12 10:15:24 +08:00
Max Lv be795e1985 Refine query interface 2017-12-27 22:18:55 -08:00
alberto lalama d237a05739 Fix off-by-one bug in free_udprelay 2017-12-13 11:24:21 -05:00
星野ハジメ cc1bb4cf62 format with .uncrustify.cfg (#1759)
* format with .uncrustify.cfg

format with .uncrustify.cfg

* format with .uncrustify.cfg

* format with .uncrustify.cfg exclude json.* base64.* uthash.h

* format with .uncrustify.cfg exclude json.* base64.* uthash.h
2017-10-30 21:28:53 +08:00
Max Lv 7abac61466 Fix #1663 2017-09-05 11:59:18 +08:00
Max Lv ede744ae7c Add c-ares support (#1655)
* Replace udns with c-ares

* Get IO loop work

* Clean up

* Avoid initializing nameservers each query

* Add ARES_OPT_SERVERS

* Refine resolv_cancel

* Fix a memory leak

* Replace udns.h with ares.h

* Fix all inet_* fucntions

* Clean up

* Enable servers_ports when VERSION_MINOR >= 11

* Avoid ares_inet_XtoX

* Handle multipe nameservers correctly

* Use ares_set_servers for IPv4 and IPv6 mixed list

* Refine c-ares for udprelay

* Refine ares_set_servers()

* Refine the timer based on ares_timeout

* Avoid resolv_cancel

* Fix an issue of null pointer

* Fix another null pointer issue

* Refine the order of resolv_shutdown

* Fix the corrupted ev io
2017-08-31 09:16:07 +08:00
Daniel 6544ef9cf8 Replace udprealy function name typos with udprelay.
Two functions `construct_udprealy_header` and `parse_udprealy_header`
contained typos and should be `construct_udprelay_header` and
`parse_udprelay_header` respectively. This commit updates these function
names and the respective callers.
2017-08-06 06:58:16 -07:00
Max Lv 95b4416e14 Clean up 2017-06-14 16:36:47 +08:00
Max Lv f5278f0ac8 Fix a typo 2017-06-12 10:27:41 +08:00
Max Lv ba81b2f49e Decrease the visibility of fragmentation. #1524 2017-06-12 10:14:03 +08:00
Mygod 72622a3e3d Use standard __ANDROID__ preprocessor macro 2017-05-17 07:08:41 +08:00
Max Lv 0313c8bcc6 Fix stat_update_cb for UDP packets 2017-05-06 07:24:12 +08:00
Max Lv 3f0d39aee6 Fix #1491 2017-05-03 15:36:58 +08:00
Max Lv 2ee9fc6417 Refine IPV6_RECVORIGDSTADDR 2017-03-27 13:29:17 +08:00
Max Lv 2867252303 Allow to receive IPv6 address. #1368 2017-03-27 13:16:14 +08:00
Max Lv e4884b5f21 Fix IPV6_RECVORIGDSTADDR. #1368 2017-03-20 09:05:12 +08:00
Max Lv 5e13d396ee Refine port binding 2017-03-07 12:05:07 +08:00
Max Lv e6799b98db Refine the error handling 2017-03-07 10:56:48 +08:00
Max Lv 3f820c6fb8 Fix #1334 2017-03-07 10:34:34 +08:00
Max Lv 7b290f30d6 Make SO_REUSEPORT disabled by default 2017-02-02 21:05:57 +08:00
Max Lv 4ebe5aeb12 Add SIP004 (AEAD) support 2017-01-29 10:10:44 +08:00
Max Lv 3f8cd982e5 Drop MinGW32 support 2017-01-24 20:10:31 +08:00
Max Lv 8cb4f81eba Add HTTP/TLS obfuscating. [SIP001] (#1009)
Add experimental HTTP/TLS obfuscating as an **optional extension** of shadowsocks protocol.

More discussions can be found here: https://github.com/shadowsocks/shadowsocks-org/issues/26

As this feature is still a SIP (Shadowsocks Improvement Proposal), it's very unstable and experimental. So, 

1. Don't enable it unless you know what it is.
2. Be very careful when using it in production environment.
2016-12-27 02:53:25 -06:00
Syrone Wong 9db8c3abe8 zeroize some structs before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-08 04:11:43 -06:00
Max Lv 25cc062e5d Use cork_container_of instead 2016-12-08 15:06:42 +08:00
Max Lv a63a33861f Add container_of 2016-12-08 14:48:40 +08:00
Syrone Wong baff29e970 Fix issues found by cppcheck
- GNU treats void* as char* when doing pointer arithmetic, so let's make it clear
- Fix memory leak, save copy from malloc() and pass the original pointer to free()
- minor type mismatches

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-07 22:30:47 -06:00
Max Lv c6876b0707 Refine cache replacing 2016-11-15 13:44:47 +08:00
Max Lv f64cb0b0ca Refine the timer of traffic stat 2016-11-12 10:18:53 +08:00
Max Lv a0151422eb Fix the traffic counter in UDP mode 2016-11-12 09:58:06 +08:00
Max Lv e3f0429ab3 Fix #819 2016-09-10 17:01:02 +08:00
Max Lv b28638ab80 Clean up 2016-09-09 13:17:58 +08:00
Max Lv 6c6f986576 Fix a typo 2016-08-12 16:09:38 +08:00
Max Lv 722d8d0c62 Fix build on Linux 2016-08-11 15:17:21 +08:00
Max Lv 1df8d06e3e Refine QoS flag for UDP forwarding 2016-08-08 09:20:49 +08:00
Max Lv 915047e957 Fix #761 2016-08-05 18:06:37 +08:00