Skip to content

Commit

Permalink
bump version to 2.1.4
Browse files Browse the repository at this point in the history
closed #74
  • Loading branch information
aa65535 committed May 12, 2015
1 parent ff56476 commit 7116b4a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=shadowsocks-libev
PKG_VERSION:=2.2.0
PKG_VERSION:=2.2.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/shadowsocks/openwrt-shadowsocks/releases/download/v$(PKG_VERSION)
PKG_MD5SUM:=43431a5f627ddaabeaefeb5972b5cafb
PKG_MD5SUM:=15862b74453c381219157bd4df11c538

PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Shadowsocks-libev for OpenWrt
---

本项目是 [shadowsocks-libev][1] 在 OpenWrt 上的移植
当前版本: 2.2.0-1
当前版本: 2.2.1-1
[预编译 IPK 下载][2]

特性
Expand Down
29 changes: 29 additions & 0 deletions patches/000-decrease-the-MAX_UDP_TIMEOUT-to-10s.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/src/jconf.h b/src/jconf.h
index 7504cbb..8cf7cce 100644
--- a/src/jconf.h
+++ b/src/jconf.h
@@ -26,7 +26,7 @@
#define MAX_CONF_SIZE 16 * 1024
#define MAX_DNS_NUM 4
#define MAX_CONNECT_TIMEOUT 10
-#define MAX_UDP_TIMEOUT 120
+#define MAX_UDP_TIMEOUT 10

typedef struct {
char *host;
diff --git a/src/netutils.c b/src/netutils.c
index ce427b4..17d13c9 100644
--- a/src/netutils.c
+++ b/src/netutils.c
@@ -80,9 +80,9 @@ size_t get_sockaddr(char *host, char *port, struct sockaddr_storage *storage, in
hints.ai_family = AF_UNSPEC; /* Return IPv4 and IPv6 choices */
hints.ai_socktype = SOCK_STREAM; /* We want a TCP socket */

- int err;
+ int err, i;

- for (int i = 1; i < 8; i++) {
+ for (i = 1; i < 8; i++) {
err = getaddrinfo(host, port, &hints, &result);
if (!block || !err) {
break;

0 comments on commit 7116b4a

Please sign in to comment.