main
Bob Mottram 2022-01-31 10:15:13 +00:00
parent aa8550faec
commit c91e58aae9
1 changed files with 2 additions and 0 deletions

View File

@ -1144,9 +1144,11 @@ class PubServer(BaseHTTPRequestHandler):
return False return False
if not referer_domain: if not referer_domain:
if not debug and not self.server.unit_test: if not debug and not self.server.unit_test:
print('nodeinfo request has no referer domain ' + ua_str)
self._400() self._400()
return True return True
if referer_domain == self.server.domain_full: if referer_domain == self.server.domain_full:
print('nodeinfo request from self')
self._400() self._400()
return True return True
if self.server.nodeinfo_is_active: if self.server.nodeinfo_is_active: