Skip to content

Commit

Permalink
Merge branch 'hotfix/0.2.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
lparam committed Sep 16, 2015
2 parents 2b17b50 + 298d856 commit 89aac04
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.2.6 (2015-9-16)
-----------
* Hotfix: Crypto init once only


v0.2.5 (2015-9-15)
-----------
* Fix: Crypto init once only
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MAJOR = 0
MINOR = 2
PATCH = 5
PATCH = 6
NAME = xsocks

ifdef O
Expand Down
2 changes: 1 addition & 1 deletion openwrt/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=xsocks
PKG_VERSION:=0.2.5
PKG_VERSION:=0.2.6
PKG_RELEASE=

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
Expand Down
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "uv.h"
#include "socks.h"

#define XSOCKS_VERSION "0.2.5"
#define XSOCKS_VERSION "0.2.6"

struct server_context {
int index;
Expand Down
4 changes: 2 additions & 2 deletions src/xforwarder.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ main(int argc, char *argv[]) {
return 1;
}

init();

#ifndef _WIN32
if (daemon_mode) {
if (daemonize()) {
Expand All @@ -241,6 +239,8 @@ main(int argc, char *argv[]) {
}
#endif

init();

loop = uv_default_loop();

rc = resolve_addr(local_addr, &bind_addr);
Expand Down
4 changes: 2 additions & 2 deletions src/xsocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ main(int argc, char *argv[]) {
return 1;
}

init();

#if !defined(_WIN32)
if (daemon_mode) {
if (daemonize()) {
Expand All @@ -248,6 +246,8 @@ main(int argc, char *argv[]) {
}
#endif

init();

loop = uv_default_loop();

rc = resolve_addr(local_addr, &bind_addr);
Expand Down
4 changes: 2 additions & 2 deletions src/xtproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ main(int argc, char *argv[]) {
return 1;
}

init();

if (daemon_mode) {
if (daemonize()) {
return 1;
Expand All @@ -228,6 +226,8 @@ main(int argc, char *argv[]) {
}
}

init();

loop = uv_default_loop();

rc = resolve_addr(local_addrbuf, &local_addr);
Expand Down
8 changes: 4 additions & 4 deletions src/xtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@ main(int argc, char *argv[]) {
return 1;
}

if (init()) {
return 1;
}

#ifndef _WIN32
if (daemon_mode) {
if (daemonize()) {
Expand All @@ -247,6 +243,10 @@ main(int argc, char *argv[]) {
}
#endif

if (init()) {
return 1;
}

loop = uv_default_loop();

rc = resolve_addr(source_addr, &bind_addr);
Expand Down

0 comments on commit 89aac04

Please sign in to comment.