H2NCH2COOH
117ddf4f33
Fix bug for ss-server when udp is sent with host not ip
9 years ago
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>
9 years ago
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>
9 years ago
Max Lv
86aeb31229
Merge pull request #567 from vizv/fix-dockerfile
Update docker related files.
9 years ago
Wenxuan Zhao
71afe284cb
Update docker related files.
+ expose UDP port
* bump up server version to 2.4.5.
9 years ago
Max Lv
ce0561a999
Fix #560
9 years ago
Max Lv
6b09dd4b9f
Fix #559
9 years ago
Max Lv
8539acd28f
Merge pull request #487 from Chion82/master
Enable TCP keep-alive feature for remote connections
9 years ago
Max Lv
2001c5fe71
Merge pull request #549 from pjrobertson/ppa
Update README on PPA not always being the latest version
9 years ago
Patrick Robertson
77334d9410
Update README on PPA not being maintained
9 years ago
Max Lv
19efe272a0
Merge pull request #547 from shao222/patch-1
Update README.md
9 years ago
shao222
29dd62ae15
Update README.md
9 years ago
Max Lv
be54931c43
Merge pull request #542 from echizenryoma/patch-1
update version to 2.4.5
9 years ago
Echizen Ryoma
0e1ca9c25d
update version to 2.4.5
9 years ago
Max Lv
3a0c6a1919
Update changelog
9 years ago
Max Lv
0dc9853ece
Bump version
9 years ago
Max Lv
6d5415eb9a
Disable ssp for OpenWRT
9 years ago
Max Lv
682aabca04
Fix #533
9 years ago
Max Lv
4be34cbd82
Fix #533
9 years ago
Max Lv
da06378915
Clean up
9 years ago
Max Lv
2ac55a4a3f
Reduce the latency of ss-redir
9 years ago
Max Lv
e669a3a37c
reset peer_name
9 years ago
Max Lv
0d64f11f47
Fix typo
9 years ago
Max Lv
dbe1e01074
Add prefix option for Android
9 years ago
Max Lv
c088e46292
Merge pull request #529 from vimagick/master
fix wrong URLs in docker/alpine/README.md
9 years ago
kev
add300ecf1
fix wrong URLs in docker/alpine/README.md
9 years ago
Max Lv
c6f091856d
Merge pull request #528 from vimagick/master
add Dockerfile based on alpine
9 years ago
kev
958d856117
add Dockerfile based on alpine
9 years ago
Max Lv
62a7dcbae8
Fix a typo
9 years ago
Max Lv
bbda6ff2ee
Merge pull request #515 from dheminsgi/master
Add Installation guide for OpenSUSE
9 years ago
Dheminsgi
f618063831
Update README.md
9 years ago
Dheminsgi
72366654a9
add Installation guide for OpenSUSE
9 years ago
Max Lv
3953788f06
Bump version
9 years ago
Max Lv
d4268dd946
Merge pull request #502 from kery/free_connections
Fix the crash issue in free_connections
9 years ago
Kery Wu
a0098cfdb9
Fix the crash issue in free_connections
9 years ago
Max Lv
f09d280af0
Fix a typo
https://msdn.microsoft.com/zh-cn/library/windows/desktop/ms738573%28v=vs.85%29.aspx
9 years ago
Max Lv
948ee68d5e
Merge pull request #501 from aipsel/fix
Fix to avoid memory leak.
9 years ago
aipsel
cd0b5c8586
Fix to avoid memory leak.
If received data is invalid, this method can cause memory leak.
9 years ago
Max Lv
c77c1c50ca
Merge pull request #500 from aipsel/fix
add check to avoid Segmentation fault
9 years ago
aipsel
b86ecbbd5c
add check to avoid Segmentation fault
9 years ago
Max Lv
bc14591df9
Merge pull request #499 from Mygod/battery-opt
Reduce battery usage - transmit traffic stat with binary
9 years ago
Mygod
68eaf3b12d
Reduce battery usage - transmit traffic stat with binary
9 years ago
Max Lv
44f3ae0b06
Merge pull request #498 from librehat/master
Support OTA in library interface (fix #497 )
9 years ago
Symeon Huang
05a15aa187
Support OTA in library interface
9 years ago
Max Lv
c065e9a434
Update configure script for clang
9 years ago
Max Lv
52739f7a14
Refine #495
9 years ago
Max Lv
96690ea08c
Merge pull request #496 from kery/issue_495
Fix #495
9 years ago
Kery
e73aab26cb
Fix #495
9 years ago
Max Lv
c18ae5f671
Fix #494
9 years ago
Max Lv
e921f40aa8
Fix #493
9 years ago