Commit Graph
24 Commits
Author SHA1 Message Date
Max Lv f4b1641636 Fix #1217 2017-02-08 09:58:04 +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 61b82c45c5 Add SIP003 plugin support (#1044)
https://github.com/shadowsocks/shadowsocks-org/issues/28
2017-01-08 01:10:00 -06:00
Max Lv 5cd294879b Add -6 option for #942 2016-11-12 11:01:05 +08:00
Max Lv 6d57b3cb56 Fix #912 2016-10-30 08:34:43 +08:00
Max Lv cfae8dcfcc Refine outbound feature #905 2016-10-29 08:11:53 +08:00
Simon Lelievre 3d11e59578 Add backward compatibility for MPTCP_ENABLED (#1) (#807) 2016-09-07 19:22:58 +08:00
Max Lv a3a51b8414 Refine hostname validation 2016-09-06 09:01:51 +08:00
Max Lv bf194fef75 Add validation of domain name 2016-08-31 09:45:47 +08:00
Max Lv 1773111a07 Fix mingw building 2016-08-11 15:19:53 +08:00
Max Lv 722d8d0c62 Fix build on Linux 2016-08-11 15:17:21 +08:00
Max Lv cf819ebec5 Fix #765 2016-08-11 12:26:22 +08:00
Max Lv 6f65fedbbd Move TCP_FASTOPEN to netutils.h 2016-08-08 12:59:33 +08:00
Max Lv d319c0300c Add mptcp option, close #756 2016-08-04 13:30:39 +08:00
Max Lv bb50fc22ca Add option for binding to address #626 2016-05-06 14:52:33 +08:00
Kim 08f873adc7 Roll up year to 2016 2016-04-22 22:50:26 +08:00
Max Lv 114128668c Refine helper functions 2016-04-16 00:43:27 +08:00
Syrone Wong a17d2f19ac Fix sockaddr comparison (#575)
This may fix #565

It is not recommended to compare two structs via memcmp although they have been
memset to 0.
Added two helper functions to compare sockaddr_storage, one for address only and
the other one takes port into account.

These two functions are based on Unbound version in util/net_help.c, and
comform needs of shadowsocks-libev.

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-04-08 17:26:11 -07:00
Syrone Wong 58264c77fc Polish code
code issues found by Clang with
CFLAGS="-Os -Wall -Wextra -Werror=unused-const-variable -Wno-error=unused-parameter"
enabled

The details as follows:
- variable initialization issue, modified them as Clang suggested
- data type mismatch when comparing, fix them either by casting or changing
  the data type of index of iterator
- get_sockaddr() in netutils may return -1 thus changed returning type from
  size_t to ssize_t, which makes Clang happier
- recvfrom() in udprelay is identical, fix this by creating local variable
  for comparison  and assign back to buf->len when returning value is acceptable

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-04-07 21:28:23 -07:00
Max Lv e921f40aa8 Fix #493 2015-12-25 09:18:53 +08:00
Max Lv 9431b9b0c3 Add TPROXY support for redir mode 2015-05-05 14:37:27 +08:00
Max Lv b875797839 clean up 2015-03-05 14:16:28 +08:00
Max Lv 40e9be0021 Avoid getaddrinfo() in the main loop 2015-01-12 16:49:47 +09:00