diff --git a/README.md b/README.md index 2b4e688b..104cca50 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ It is a port of [shadowsocks](https://github.com/clowwindy/shadowsocks) created by [@clowwindy](https://github.com/clowwindy) maintained by [@madeye](https://github.com/madeye) and [@linusyang](https://github.com/linusyang). -Current version: 1.5.2 | [![Build Status](https://travis-ci.org/madeye/shadowsocks-libev.png?branch=master)](https://travis-ci.org/madeye/shadowsocks-libev) | [Changelog](Changes) +Current version: 1.5.3 | [![Build Status](https://travis-ci.org/madeye/shadowsocks-libev.png?branch=master)](https://travis-ci.org/madeye/shadowsocks-libev) | [Changelog](Changes) Features -------- diff --git a/configure b/configure index 68eabb9d..7cea1a2e 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for shadowsocks 1.5.2. +# Generated by GNU Autoconf 2.68 for shadowsocks 1.5.3. # # Report bugs to . # @@ -570,8 +570,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='shadowsocks' PACKAGE_TARNAME='shadowsocks' -PACKAGE_VERSION='1.5.2' -PACKAGE_STRING='shadowsocks 1.5.2' +PACKAGE_VERSION='1.5.3' +PACKAGE_STRING='shadowsocks 1.5.3' PACKAGE_BUGREPORT='max.c.lv@gmail.com' PACKAGE_URL='' @@ -1307,7 +1307,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures shadowsocks 1.5.2 to adapt to many kinds of systems. +\`configure' configures shadowsocks 1.5.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1377,7 +1377,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of shadowsocks 1.5.2:";; + short | recursive ) echo "Configuration of shadowsocks 1.5.3:";; esac cat <<\_ACEOF @@ -1494,7 +1494,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -shadowsocks configure 1.5.2 +shadowsocks configure 1.5.3 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2016,7 +2016,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by shadowsocks $as_me 1.5.2, which was +It was created by shadowsocks $as_me 1.5.3, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2837,7 +2837,7 @@ fi # Define the identity of the package. PACKAGE='shadowsocks' - VERSION='1.5.2' + VERSION='1.5.3' cat >>confdefs.h <<_ACEOF @@ -15533,7 +15533,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by shadowsocks $as_me 1.5.2, which was +This file was extended by shadowsocks $as_me 1.5.3, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -15599,7 +15599,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -shadowsocks config.status 1.5.2 +shadowsocks config.status 1.5.3 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index b34eebda..27c213b6 100755 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl -*- Autoconf -*- dnl Process this file with autoconf to produce a configure script. AC_PREREQ([2.67]) -AC_INIT([shadowsocks], [1.5.2], [max.c.lv@gmail.com]) +AC_INIT([shadowsocks], [1.5.3], [max.c.lv@gmail.com]) AC_CONFIG_SRCDIR([src/encrypt.c]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_AUX_DIR(auto) diff --git a/debian/changelog b/debian/changelog index 5161056a..a0cf2317 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +shadowsocks (1.5.3-1) unstable; urgency=low + + * Fix log on Win32. + + -- Max Lv Fri, 14 Nov 2014 09:10:06 +0800 + shadowsocks (1.5.2-1) unstable; urgency=low * Handle SIGTERM and SIGKILL nicely. diff --git a/openwrt/Makefile b/openwrt/Makefile index 786a9b55..9cf3a2d4 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=shadowsocks-libev -PKG_VERSION:=1.5.2 +PKG_VERSION:=1.5.3 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE_URL:=https://github.com/madeye/shadowsocks-libev/archive diff --git a/src/local.c b/src/local.c index a74c03cd..21c38221 100644 --- a/src/local.c +++ b/src/local.c @@ -154,7 +154,6 @@ int create_and_bind(const char *addr, const char *port) int opt = 1; setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); - setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -793,7 +792,6 @@ static void close_and_free_server(EV_P_ struct server *server) static struct remote * connect_to_remote(struct listen_ctx *listener, const char *host, const char *port) { - int opt = 1; int sockfd; struct addrinfo *remote_res; @@ -829,8 +827,8 @@ static struct remote * connect_to_remote(struct listen_ctx *listener, return NULL; } - setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE + int opt = 1; setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -868,9 +866,8 @@ void accept_cb(EV_P_ ev_io *w, int revents) return; } setnonblocking(serverfd); - int opt = 1; - setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE + int opt = 1; setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif diff --git a/src/redir.c b/src/redir.c index 8d030d7e..67e4a42f 100644 --- a/src/redir.c +++ b/src/redir.c @@ -127,7 +127,6 @@ int create_and_bind(const char *addr, const char *port) int opt = 1; setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); - setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -588,9 +587,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents) } setnonblocking(clientfd); - int opt = 1; - setsockopt(clientfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE + int opt = 1; setsockopt(clientfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -615,7 +613,6 @@ static void accept_cb(EV_P_ ev_io *w, int revents) return; } - setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif diff --git a/src/server.c b/src/server.c index 03b0bcac..2f3cec4a 100644 --- a/src/server.c +++ b/src/server.c @@ -154,7 +154,6 @@ int create_and_bind(const char *host, const char *port) int opt = 1; setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); - setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -198,7 +197,6 @@ static struct remote *connect_to_remote(struct addrinfo *res, struct server *server) { int sockfd; - int opt = 1; #ifdef SET_INTERFACE const char *iface = server->listen_ctx->iface; #endif @@ -211,8 +209,8 @@ static struct remote *connect_to_remote(struct addrinfo *res, return NULL; } - setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE + int opt = 1; setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -889,9 +887,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents) } setnonblocking(serverfd); - int opt = 1; - setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE + int opt = 1; setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif diff --git a/src/tunnel.c b/src/tunnel.c index 75a0f7a2..f82d2e1b 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -131,7 +131,6 @@ int create_and_bind(const char *addr, const char *port) int opt = 1; setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); - setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -573,9 +572,8 @@ static void accept_cb(EV_P_ ev_io *w, int revents) return; } setnonblocking(serverfd); - int opt = 1; - setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE + int opt = 1; setsockopt(serverfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif @@ -603,7 +601,6 @@ static void accept_cb(EV_P_ ev_io *w, int revents) return; } - setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)); #ifdef SO_NOSIGPIPE setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt)); #endif