diff options
Diffstat (limited to 'lanbrowsing/lisa/addressvalidator.cpp')
-rw-r--r-- | lanbrowsing/lisa/addressvalidator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lanbrowsing/lisa/addressvalidator.cpp b/lanbrowsing/lisa/addressvalidator.cpp index 3ac8ccf0..70207ece 100644 --- a/lanbrowsing/lisa/addressvalidator.cpp +++ b/lanbrowsing/lisa/addressvalidator.cpp @@ -74,20 +74,20 @@ void AddressValidator::setValidAddresses(MyString addressSpecs) nextPart=addressSpecs.left(pos); addressSpecs=addressSpecs.mid(pos+1); dcerr<<"setValidAddresses: nextPart: "<<nextPart<<std::endl; - if ((nextPart.tqcontains('.')==3) && (nextPart.tqcontains('-')==0)) + if ((nextPart.contains('.')==3) && (nextPart.contains('-')==0)) { addSpec(EXACTADDR_SPEC,inet_addr(nextPart.data())); dcerr<<"setValidAddresses: exact addr: " <<std::ios::hex<<inet_addr(nextPart.data())<<std::ios::dec<<std::endl; } - else if ((nextPart.tqcontains('-')==1) && (nextPart.tqcontains('.')==6)) + else if ((nextPart.contains('-')==1) && (nextPart.contains('.')==6)) { int p2=nextPart.find("-"); MyString from=nextPart.left(p2); MyString to=nextPart.mid(p2+1); addSpec(RANGE_SPEC,ntohl(inet_addr(from.data())),ntohl(inet_addr(to.data()))); } - else if ((nextPart.tqcontains('-')==4) && (nextPart.tqcontains('.')==3)) + else if ((nextPart.contains('-')==4) && (nextPart.contains('.')==3)) { unsigned int i1=0; unsigned int i2=0; |