diff options
author | Jakub Sławiński | 2006-11-22 14:17:55 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:15:03 +0200 |
commit | 0136c76f966b0d74ff0666abb5dd7a1a2516f931 (patch) | |
tree | 7c04e4f13caa74a5a66feae440a34a5fa49722f1 | |
parent | v0.8.2 (diff) | |
download | apf-0136c76f966b0d74ff0666abb5dd7a1a2516f931.tar.gz |
v0.8.3
- Fixed: bug in udp_listen function when AF_INET6 is not defined
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | doc/afclient.1 | 2 | ||||
-rw-r--r-- | doc/afclient.conf.5 | 2 | ||||
-rw-r--r-- | doc/afserver.1 | 2 | ||||
-rw-r--r-- | doc/afserver.conf.5 | 2 | ||||
-rw-r--r-- | doc/en/README | 2 | ||||
-rw-r--r-- | src/activefor.h | 2 | ||||
-rw-r--r-- | src/network.c | 8 |
10 files changed, 17 insertions, 12 deletions
@@ -1,3 +1,6 @@ +21.11.2006 (v0.8.3): + - Fixed: bug in udp_listen function when AF_INET6 is not defined + 13.09.2006 (v0.8.2): - Fixed: bug in resource deallocation for remote admin clients @@ -1,4 +1,4 @@ -AF - Active Port Forwarder 0.8.2 - README +AF - Active Port Forwarder 0.8.3 - README Copyright (C) 2003-2006 jeremian - <jeremian [at] poczta.fm> ================================================================= diff --git a/configure.ac b/configure.ac index dd39ada..fda1509 100644 --- a/configure.ac +++ b/configure.ac @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT([Active port forwarder], [0.8.2], [jeremian@poczta.fm], [apf]) -AM_INIT_AUTOMAKE([apf], [0.8.2]) +AC_INIT([Active port forwarder], [0.8.3], [jeremian@poczta.fm], [apf]) +AM_INIT_AUTOMAKE([apf], [0.8.3]) AC_COPYRIGHT([ Copyright (C) 2003-2006 jeremian - <jeremian [[at]] poczta.fm> =================== diff --git a/doc/afclient.1 b/doc/afclient.1 index 9517f1e..155e906 100644 --- a/doc/afclient.1 +++ b/doc/afclient.1 @@ -1,4 +1,4 @@ -.TH afclient 1 "apf 0.8.2" Jeremian +.TH afclient 1 "apf 0.8.3" Jeremian .SH NAME afclient \- active port forwarder client .SH SYNOPSIS diff --git a/doc/afclient.conf.5 b/doc/afclient.conf.5 index fc0c86e..51df256 100644 --- a/doc/afclient.conf.5 +++ b/doc/afclient.conf.5 @@ -1,4 +1,4 @@ -.TH afclient.conf 5 "apf 0.8.2" Jeremian +.TH afclient.conf 5 "apf 0.8.3" Jeremian .SH NAME afclient.conf \- Configuration File for afclient .SH INTRODUCTION diff --git a/doc/afserver.1 b/doc/afserver.1 index 6836f1f..9c0ac35 100644 --- a/doc/afserver.1 +++ b/doc/afserver.1 @@ -1,4 +1,4 @@ -.TH afserver 1 "apf 0.8.2" Jeremian +.TH afserver 1 "apf 0.8.3" Jeremian .SH NAME afserver \- active port forwarder server .SH SYNOPSIS diff --git a/doc/afserver.conf.5 b/doc/afserver.conf.5 index 5637500..125db5a 100644 --- a/doc/afserver.conf.5 +++ b/doc/afserver.conf.5 @@ -1,4 +1,4 @@ -.TH afserver.conf 5 "apf 0.8.2" Jeremian +.TH afserver.conf 5 "apf 0.8.3" Jeremian .SH NAME afserver.conf \- Configuration File for afserver .SH INTRODUCTION diff --git a/doc/en/README b/doc/en/README index e93a125..08a3b1b 100644 --- a/doc/en/README +++ b/doc/en/README @@ -1,4 +1,4 @@ -AF - Active Port Forwarder 0.8.2 - README +AF - Active Port Forwarder 0.8.3 - README Copyright (C) 2003-2006 jeremian - <jeremian [at] poczta.fm> ================================================================= diff --git a/src/activefor.h b/src/activefor.h index 2e667af..e20dc63 100644 --- a/src/activefor.h +++ b/src/activefor.h @@ -53,7 +53,7 @@ #define S_STATE_OPENING_CLOSED 17 #define S_STATE_KICKING 19 -#define AF_VER(info) info" v0.8.2" +#define AF_VER(info) info" v0.8.3" #define TYPE_TCP 1 #define TYPE_UDP 3 diff --git a/src/network.c b/src/network.c index 6a62a59..0980893 100644 --- a/src/network.c +++ b/src/network.c @@ -155,9 +155,11 @@ ip_listen(int* sockfd, const char *host, const char *serv, socklen_t *addrlenp, return 4; } - if (listen((*sockfd), 5)){ - return 5; - } + if (type & 0x01) { /* tcp_listen */ + if (listen((*sockfd), 5)){ + return 5; + } + } if (addrlenp) { *addrlenp = sizeof(servaddr); /* return size of protocol address */ |