Mercurial > hg > orthanc
comparison OrthancServer/Internals/CommandDispatcher.cpp @ 1085:b161593551db
Always allow incoming ECHO requests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Aug 2014 12:16:50 +0200 |
parents | 01414536c930 |
children | 3db41779d8f9 |
comparison
equal
deleted
inserted
replaced
1084:c608407d8dc2 | 1085:b161593551db |
---|---|
724 } | 724 } |
725 | 725 |
726 | 726 |
727 // Check whether this request is allowed by the security filter | 727 // Check whether this request is allowed by the security filter |
728 if (supported && | 728 if (supported && |
729 request != DicomRequestType_Echo && // Always allow incoming ECHO requests | |
729 filter_ != NULL && | 730 filter_ != NULL && |
730 !filter_->IsAllowedRequest(callingIP_, callingAETitle_, request)) | 731 !filter_->IsAllowedRequest(callingIP_, callingAETitle_, request)) |
731 { | 732 { |
732 LOG(ERROR) << EnumerationToString(request) | 733 LOG(ERROR) << EnumerationToString(request) |
733 << " requests are disallowed for the AET \"" | 734 << " requests are disallowed for the AET \"" |
734 << callingAETitle_ << "\""; | 735 << callingAETitle_ << "\""; |
735 cond = DIMSE_BADCOMMANDTYPE; | 736 cond = DIMSE_ILLEGALASSOCIATION; |
736 supported = false; | 737 supported = false; |
738 finished = true; | |
737 } | 739 } |
738 | 740 |
739 // in case we received a supported message, process this command | 741 // in case we received a supported message, process this command |
740 if (supported) | 742 if (supported) |
741 { | 743 { |