Max Lv
944e3b2a16
refine the log of TCP only mode
10 years ago
Max Lv
ea9d293abe
add UDP relay only mode
10 years ago
Max Lv
00e7ea205c
check name_len in the header
10 years ago
Max Lv
9431b9b0c3
Add TPROXY support for redir mode
10 years ago
JohnnySun
4f45870970
Add try to use /etc/shadowsocks/config.json for ss-redir ss-server ss-tunnel.
10 years ago
JohnnySun
2de1ef639b
Add isatty check when change STDERR_FILENO to a file
10 years ago
Max Lv
b875797839
clean up
10 years ago
Max Lv
c760f11902
refine #274
10 years ago
Max Lv
f8e86c57c0
fix #274
10 years ago
Max Lv
a365d66d69
fix an issue of acl
10 years ago
Max Lv
7e46e3bacc
fix #258
10 years ago
Max Lv
5cdd133fc7
add acl to server
10 years ago
Max Lv
b672c4ce7f
Fix an issue on Android
http://androidxref.com/5.0.0_r2/xref/bionic/libc/include/netdb.h#164
http://androidxref.com/5.0.0_r2/xref/bionic/libc/dns/net/getaddrinfo.c#627
10 years ago
Max Lv
f3f6ece4fc
clean up
10 years ago
Max Lv
e131e64f27
fix #241
10 years ago
KrazyIvan
c627efb43d
Update server.c
10 years ago
KrazyIvan
a9c12d0f6f
output bugs
fix bug:
initialize ciphers... (null)
listening at (null):8388
10 years ago
Max Lv
e6e75ed6fb
refine output
10 years ago
Max Lv
86b78dedd7
fix potential overflow
10 years ago
Max Lv
726a1b7dd7
clean up
10 years ago
KrazyIvan
70f17645de
Dual mode IPv4/IPv6 stack support
Listen on all IP address (ipv4 and ipv6 dual mode) in single bind by default if not specify '-s'
Create an IPv6 server socket that can also accept IPv4 connections. To do so, create a regular IPv6 socket, turn off the socket option IPV6_V6ONLY, bind it to the "any" address, and start receiving. IPv4 addresses will be presented as IPv6 addresses, in the IPv4-mapped format.
10 years ago
KrazyIvan-
28b3793b23
Update server.c
Fix multi addr bind:
example ./ss-server -s 0 -s ::
2015-01-21 07:28:09 ERROR: bind: Address already in use
2015-01-21 07:28:09 ERROR: Could not bind
2015-01-21 07:28:09 ERROR: bind() error
10 years ago
Max Lv
a8a5085ed2
refine log
10 years ago
Max Lv
3b07420550
refine tcp_nodelay
10 years ago
Max Lv
dfb4b3ba3c
refine mingw compatibility
10 years ago
Max Lv
c2d1911bb0
clean up
10 years ago
Max Lv
64c494e18f
Fix issues with MinGW
10 years ago
Meitian Huang
6dbf0fae07
Refine nameserver settings
* Use the nameserver given in the configuration file if any.
* Use Google Public DNS only if the user does not nominate a nameserver.
10 years ago
Max Lv
e5289e9ba4
Replace libasyncns with libudns
10 years ago
Max Lv
2a15e97196
bump version
10 years ago
Max Lv
a772aba1f4
refine log
10 years ago
Max Lv
93d861f9b9
fix #187
10 years ago
Max Lv
888c2438c3
refine timeout
10 years ago
Max Lv
cd6a5e409d
tune timeout
10 years ago
Max Lv
ae85d6f36b
fix some bugs
10 years ago
Meitian Huang
915236fcab
Fix build on FreeBSD
10 years ago
Max Lv
dc066d5ceb
refine commandline output
10 years ago
Max Lv
1a94c7b68f
enlarge backlog number
10 years ago
Max Lv
e9f2369486
handle EINPROGRESS nicely
10 years ago
Max Lv
1268016e06
remove tcp_nodelay
10 years ago
Max Lv
042749d533
fix build on win32
10 years ago
Max Lv
693b198887
refine server end
10 years ago
Max Lv
b198d1da2e
bump version
10 years ago
Max Lv
08a35fd1bb
handle sigterm and sigkill
10 years ago
Max Lv
f6b87fcd00
handle sigterm and sigkill
10 years ago
Max Lv
1235900963
fix a build issue
10 years ago
Liu Qishuai
dc77188954
fixes
10 years ago
Liu Qishuai
54345cbee0
add TCP-fast-open support from server to remote
10 years ago
clowwindy
369d27ee78
increase BUF_SIZE
10 years ago
Max Lv
53f0af4e9e
refine the timer
10 years ago