Syrone Wong
a135d9c41e
libsodium: Fix _FORTIFY_SOURCE redefined issue
...
If we already defined `CFLAGS=-D_FORTIFY_SOURCE=1`, it will still check `-D_FORTIFY_SOURCE=2` and
add it to CPPFLAGS. In this case, we redefine `_FORTIFY_SOURCE` to both 1 and 2 if compiler accepts `-D_FORTIFY_SOURCE=2`.
Fix this issue by checking whether `_FORTIFY_SOURCE` was defined or not.
If defined, do nothing. If not, then check `-D_FORTIFY_SOURCE=2`.
BTW, OpenWrt's buildroot uses `-D_FORTIFY_SOURCE=1` for most targets by default.
2015-08-02 10:21:42 +08:00
Syrone Wong
56daf99944
Add more mbed TLS cipher check
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2015-08-01 11:16:33 +08:00
Max Lv
5424cbe27c
Merge pull request #365 from wongsyrone/master
...
Add mbed TLS support for shadowsocks-libev
2015-08-01 08:36:12 +08:00
Syrone Wong
e81b205e61
Add mbed TLS support for shadowsocks-libev
...
Notes:
- Test cipher CFB support just in case (i.e. OpenWrt disabled it)
- Added some inline notes, please feel free to modify or remove them.
- Sorry for my bad English
- If you want to compile for OpenWrt, please make sure this hunk[1] not exists.
- Only tested on ARM mamba (Linksys WRT1900AC v1), it works.
[1] https://github.com/openwrt-mirror/openwrt/blob/master/package/libs/mbedtls/patches/200-config.patch#L12-L20
Have fun!
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2015-08-01 07:52:04 +08:00
Max Lv
aaf7284234
avoid protect socket every time
2015-07-31 18:50:30 +08:00
Max Lv
7260153439
add log for possible ip fragmentation
2015-07-31 16:38:25 +08:00
Max Lv
b3911fc84f
fix a build issue
2015-07-31 13:11:35 +08:00
Max Lv
a9f8b2bdfa
drop large UDP packets
2015-07-31 10:28:46 +08:00
Max Lv
6c9ad95232
fix a typo
2015-07-30 16:43:23 +08:00
Max Lv
2e65ccaf78
bump version
2015-07-30 17:40:54 +09:00
Max Lv
d2794c0c98
disable TCP_FASTOPEN for EI Capitan
2015-07-30 16:29:41 +08:00
Max Lv
60bdea5b85
update a marco of detecting linux
2015-07-30 16:19:19 +08:00
Max Lv
23ff3bf96a
fix a build issue
2015-07-28 19:28:32 +08:00
Max Lv
1d5a3b9f1b
fix #357
2015-07-28 19:18:42 +08:00
Max Lv
3af591c565
Merge pull request #359 from shadowsocks/android-ipc
...
Add some IPC functions for Android VPN mode
2015-07-25 06:56:44 +08:00
Max Lv
3d2b980161
add android vpn mode option
2015-07-24 21:38:12 +08:00
Max Lv
94a1c4fa10
use blocking IPC
2015-07-24 20:42:22 +08:00
Max Lv
680007589c
fix a build issue
2015-07-24 18:55:19 +08:00
Max Lv
87fb636545
fix some issues
2015-07-24 14:07:53 +08:00
Max Lv
15010013a4
protect udp relay socket
2015-07-24 13:51:36 +08:00
Max Lv
2c0dd4a33d
fix some issues
2015-07-24 10:55:29 +08:00
Max Lv
feed7cc1f9
add android ipc function
2015-07-24 10:42:46 +08:00
Max Lv
a132e84465
refine a function name
2015-07-23 12:53:41 +08:00
Max Lv
2b1eef1197
fix #356 , disable TLS for uClibc
2015-07-20 00:32:03 +09:00
Max Lv
53ddb3b4d2
enlarge min UDP relay timeout
v2.2.3
2015-07-14 21:05:46 +08:00
Max Lv
e762723fc2
Merge pull request #347 from hosiet/fix-grammar
...
Change 'scoks' to 'socks'
2015-07-14 15:11:32 +08:00
Boyuan Yang
025ea589d0
Change 'scoks' to 'socks'
2015-07-14 14:36:09 +08:00
Max Lv
8283e51597
enlarge the default timeout
2015-07-14 09:08:29 +08:00
Max Lv
e4a795dad2
fix an issue of TPROXY
2015-07-13 20:20:53 +08:00
Max Lv
09152d405d
refine the handling of dest addr
2015-07-13 10:22:24 +08:00
Max Lv
b517ec2c91
fix a corner case
2015-07-12 22:20:40 +08:00
Max Lv
430fa956e3
Merge pull request #344 from shadowsocks/udp-refine
...
Refine UDP relay on remote side
2015-07-12 22:16:58 +08:00
Max Lv
e980265bde
allow different destination addresses in UDP relay
2015-07-12 22:06:37 +08:00
Max Lv
415da01dcd
refine udp header constructor
2015-07-12 21:51:31 +08:00
Max Lv
78c2ab9166
fix #341
2015-07-12 18:02:56 +08:00
Max Lv
12c3136b9c
fix a typo
2015-07-12 17:14:08 +08:00
Max Lv
7764466998
fix the timer
2015-07-12 17:09:56 +08:00
Max Lv
3999fbcf0b
bump version
2015-07-11 08:33:33 +09:00
Max Lv
cb07018f8f
Merge pull request #338 from shadowsocks/multi-dst-udp-int
...
Fix #337
2015-07-11 07:20:52 +08:00
Max Lv
e0a864aca7
Fix #337
2015-07-11 07:19:06 +08:00
Max Lv
944e3b2a16
refine the log of TCP only mode
2015-07-06 14:10:46 +08:00
Max Lv
a312986239
remove UDP relay only from local mode
2015-07-06 14:04:02 +08:00
Max Lv
ea9d293abe
add UDP relay only mode
2015-07-06 13:48:32 +08:00
Max Lv
3a629a320c
Revert "fix #330 "
...
This reverts commit d5b1101196 .
2015-06-30 19:45:39 +08:00
Max Lv
d5b1101196
fix #330
2015-06-30 19:22:28 +08:00
Max Lv
4883903e65
increase max udp timeout to 60s
v2.2.2
2015-06-15 09:59:58 +08:00
Max Lv
bc2e30c7e7
bump version
2015-06-15 10:31:57 +09:00
Max Lv
9a5468d313
fix the timer of udprelay
2015-06-15 09:13:48 +08:00
Max Lv
00e7ea205c
check name_len in the header
2015-06-12 13:37:59 +08:00
Max Lv
b4bab71eb4
Merge pull request #320 from BlackGear/master
...
add OS X's install instruction
2015-06-05 21:37:17 +04:00