git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
81fb41c
)
generate, libi2ncommon: (tomj) migrated squid.conf to new rights concept, fixed alway...
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Sun, 5 Sep 2004 20:08:10 +0000 (20:08 +0000)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Sun, 5 Sep 2004 20:08:10 +0000 (20:08 +0000)
src/ipfunc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/ipfunc.cpp
b/src/ipfunc.cpp
index
e2c7922
..
a9cd704
100644
(file)
--- a/
src/ipfunc.cpp
+++ b/
src/ipfunc.cpp
@@
-240,12
+240,10
@@
std::string IP_RANGE::to_string(bool always_mask) const
output=output+"-"+buffer;
}
+ else if (t==IP && always_mask)
+ output+="/32";
- // t == IP
- if (always_mask)
- return output+"/32";
- else
- return output;
+ return output;
}
vector<IP_RANGE> IP_RANGE::to_cidr(void) const