Syrone Wong
06d92c923c
compare port as well
...
The whole remote_ctx is inserted into the cache and sockaddr_storage contains
both address and port.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-04-15 08:34:35 -07:00
H2NCH2COOH
43fde8d39c
Fix bug for ss-server udp sendto_remote error ( #578 )
2016-04-09 20:00:15 -07:00
H2NCH2COOH
117ddf4f33
Fix bug for ss-server when udp is sent with host not ip
2016-04-09 08:06:51 -07: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
86aeb31229
Merge pull request #567 from vizv/fix-dockerfile
...
Update docker related files.
2016-03-21 10:04:32 -05:00
Wenxuan Zhao
71afe284cb
Update docker related files.
...
+ expose UDP port
* bump up server version to 2.4.5.
2016-03-21 11:23:15 -03:00
Max Lv
ce0561a999
Fix #560
2016-03-14 09:50:59 +08:00
Max Lv
6b09dd4b9f
Fix #559
2016-03-13 13:12:08 +08:00
Max Lv
8539acd28f
Merge pull request #487 from Chion82/master
...
Enable TCP keep-alive feature for remote connections
2016-03-11 12:05:48 +08:00
Max Lv
2001c5fe71
Merge pull request #549 from pjrobertson/ppa
...
Update README on PPA not always being the latest version
2016-03-04 07:42:02 +08:00
Patrick Robertson
77334d9410
Update README on PPA not being maintained
2016-03-04 07:28:28 +08:00
Max Lv
19efe272a0
Merge pull request #547 from shao222/patch-1
...
Update README.md
2016-03-02 11:57:42 +08:00
shao222
29dd62ae15
Update README.md
2016-03-02 11:50:51 +08:00
Max Lv
be54931c43
Merge pull request #542 from echizenryoma/patch-1
...
update version to 2.4.5
2016-02-18 10:40:48 +08:00
Echizen Ryoma
0e1ca9c25d
update version to 2.4.5
2016-02-18 09:56:48 +08:00
Max Lv
3a0c6a1919
Update changelog
v2.4.5
2016-02-01 14:32:56 +08:00
Max Lv
0dc9853ece
Bump version
2016-02-01 13:24:29 +08:00
Max Lv
6d5415eb9a
Disable ssp for OpenWRT
2016-02-01 13:14:21 +08:00
Max Lv
682aabca04
Fix #533
2016-02-01 13:07:14 +08:00
Max Lv
4be34cbd82
Fix #533
2016-02-01 12:26:55 +08:00
Max Lv
da06378915
Clean up
2016-01-31 17:21:44 +08:00
Max Lv
2ac55a4a3f
Reduce the latency of ss-redir
2016-01-26 10:40:23 +08:00
Max Lv
e669a3a37c
reset peer_name
2016-01-26 09:48:33 +08:00
Max Lv
0d64f11f47
Fix typo
2016-01-24 17:18:09 +08:00
Max Lv
dbe1e01074
Add prefix option for Android
2016-01-24 16:32:37 +08:00
Max Lv
c088e46292
Merge pull request #529 from vimagick/master
...
fix wrong URLs in docker/alpine/README.md
2016-01-20 21:19:19 +08:00
kev
add300ecf1
fix wrong URLs in docker/alpine/README.md
2016-01-20 21:14:12 +08:00
Max Lv
c6f091856d
Merge pull request #528 from vimagick/master
...
add Dockerfile based on alpine
2016-01-20 21:01:30 +08:00
kev
958d856117
add Dockerfile based on alpine
2016-01-20 20:51:59 +08:00
Max Lv
62a7dcbae8
Fix a typo
2016-01-19 08:57:30 +08:00
Max Lv
bbda6ff2ee
Merge pull request #515 from dheminsgi/master
...
Add Installation guide for OpenSUSE
2016-01-13 22:28:36 +08:00
Dheminsgi
f618063831
Update README.md
2016-01-13 08:09:50 -05:00
Dheminsgi
72366654a9
add Installation guide for OpenSUSE
2016-01-13 07:35:58 -05:00
Max Lv
3953788f06
Bump version
v2.4.4
2016-01-13 11:53:02 +08:00
Max Lv
d4268dd946
Merge pull request #502 from kery/free_connections
...
Fix the crash issue in free_connections
2016-01-01 11:14:56 +08:00
Kery Wu
a0098cfdb9
Fix the crash issue in free_connections
2016-01-01 10:32:57 +08:00
Max Lv
f09d280af0
Fix a typo
...
https://msdn.microsoft.com/zh-cn/library/windows/desktop/ms738573%28v=vs.85%29.aspx
2015-12-30 12:49:26 +08:00
Max Lv
948ee68d5e
Merge pull request #501 from aipsel/fix
...
Fix to avoid memory leak.
2015-12-29 07:31:18 +08:00
aipsel
cd0b5c8586
Fix to avoid memory leak.
...
If received data is invalid, this method can cause memory leak.
2015-12-29 00:45:10 +08:00
Max Lv
c77c1c50ca
Merge pull request #500 from aipsel/fix
...
add check to avoid Segmentation fault
2015-12-27 18:34:39 +08:00
aipsel
b86ecbbd5c
add check to avoid Segmentation fault
2015-12-27 18:20:04 +08:00
Max Lv
bc14591df9
Merge pull request #499 from Mygod/battery-opt
...
Reduce battery usage - transmit traffic stat with binary
2015-12-27 07:48:41 +08:00
Mygod
68eaf3b12d
Reduce battery usage - transmit traffic stat with binary
2015-12-26 20:40:05 +08:00
Max Lv
44f3ae0b06
Merge pull request #498 from librehat/master
...
Support OTA in library interface (fix #497 )
2015-12-25 23:00:01 +08:00
Symeon Huang
05a15aa187
Support OTA in library interface
2015-12-25 14:46:33 +00:00
Max Lv
c065e9a434
Update configure script for clang
2015-12-25 14:52:27 +08:00
Max Lv
52739f7a14
Refine #495
2015-12-25 14:48:23 +08:00
Max Lv
96690ea08c
Merge pull request #496 from kery/issue_495
...
Fix #495
2015-12-25 14:29:00 +08:00
Kery
e73aab26cb
Fix #495
2015-12-25 14:12:34 +08:00