Browse Source
Merge pull request #478 from wmz46/wvp-28181-2.0
无认证密码时,不校验是否存在授权头
pull/484/head
648540858
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/RegisterRequestProcessor.java
|
@ -94,7 +94,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen |
|
|
String deviceId = uri.getUser(); |
|
|
String deviceId = uri.getUser(); |
|
|
|
|
|
|
|
|
AuthorizationHeader authHead = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME); |
|
|
AuthorizationHeader authHead = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME); |
|
|
if (authHead == null) { |
|
|
if (authHead == null && !StringUtils.isEmpty(sipConfig.getPassword())) { |
|
|
logger.info("[注册请求] 未携带授权头 回复401: {}", requestAddress); |
|
|
logger.info("[注册请求] 未携带授权头 回复401: {}", requestAddress); |
|
|
response = getMessageFactory().createResponse(Response.UNAUTHORIZED, request); |
|
|
response = getMessageFactory().createResponse(Response.UNAUTHORIZED, request); |
|
|
new DigestServerAuthenticationHelper().generateChallenge(getHeaderFactory(), response, sipConfig.getDomain()); |
|
|
new DigestServerAuthenticationHelper().generateChallenge(getHeaderFactory(), response, sipConfig.getDomain()); |
|
|