diff --git a/nsupdate/api/views.py b/nsupdate/api/views.py index 19015cd..3aac115 100644 --- a/nsupdate/api/views.py +++ b/nsupdate/api/views.py @@ -220,7 +220,7 @@ class NicUpdateView(View): host.register_client_fault() return Response('badagent') ipaddr = request.GET.get('myip') - if ipaddr is None: + if not ipaddr: # None or '' ipaddr = request.META.get('REMOTE_ADDR') ssl = request.is_secure() if delete: