1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 04:03:12 +02:00

# BUILD : 1.7.15 (1129) # BUGS : 575 # NOTES : fixed port checking when using cmd line switches

git-svn-id: svn://svn.anope.org/anope/trunk@1130 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@853 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-08-09 12:32:06 +00:00
parent b7092e6bd1
commit a512a8f9eb
3 changed files with 20 additions and 7 deletions
+5
View File
@@ -1,3 +1,8 @@
Anope Version SVN
--------------------
Provided by Anope Dev. <dev@anope.org> - 2006
08/09 F Fixed port checking when using command line switches. [#575]
Anope Version 1.7.15
--------------------
Provided by Anope Dev. <dev@anope.org> - 2006
+10 -6
View File
@@ -224,12 +224,14 @@ static int parse_options(int ac, char **av)
s = av[i];
t = strchr(s, ':');
if (t) {
int portnum;
*t++ = 0;
if (atoi(t) > 0)
RemotePort = atoi(t);
portnum = atoi(t);
if ((portnum > 0) && (portnum < 65535))
RemotePort = portnum;
else {
fprintf(stderr,
"-remote: port number must be a positive integer. Using default.");
"-remote: Port numbers must be in the range 1..65535. Using default.\n");
return -1;
}
}
@@ -243,12 +245,14 @@ static int parse_options(int ac, char **av)
s = av[i];
t = strchr(s, ':');
if (t) {
int portnum;
*t++ = 0;
if (atoi(t) >= 0)
LocalPort = atoi(t);
portnum = atoi(t);
if ((portnum >= 0) && (portnum < 65535))
LocalPort = portnum;
else {
fprintf(stderr,
"-local: port number must be a positive integer or 0. Using default.");
"-local: Port numbers must be in the range 1..65535 or 0. Using default.\n");
return -1;
}
}
+5 -1
View File
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="15"
VERSION_EXTRA=""
VERSION_BUILD="1128"
VERSION_BUILD="1129"
# $Log$
#
# BUILD : 1.7.15 (1129)
# BUGS : 575
# NOTES : fixed port checking when using cmd line switches
#
# BUILD : 1.7.15 (1128)
# BUGS :
# NOTES : Anope 1.7.15 Release