def reregister(request):
if request.method != 'POST':
return HttpResponseNotAllowed(['POST'])
fqdn = MessageView.valid_fqdn(request)
if not fqdn:
return HttpForbidden()
host_attributes = json.loads(request.body)
ValidatedClientView.valid_certs[request.META['HTTP_X_SSL_CLIENT_SERIAL']] = host_attributes['fqdn']
ManagedHost.objects.filter(fqdn=fqdn).update(fqdn=host_attributes['fqdn'], address=host_attributes['address'])
return HttpResponse()
评论列表
文章目录