diff options
Diffstat (limited to 'tools/scan-view/ScanView.py')
-rw-r--r-- | tools/scan-view/ScanView.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/scan-view/ScanView.py b/tools/scan-view/ScanView.py index 48b8cc80d0..2e06f2a8fb 100644 --- a/tools/scan-view/ScanView.py +++ b/tools/scan-view/ScanView.py @@ -492,6 +492,10 @@ File Bug</h3> return self.send_string(result) def send_head(self, fields=None): + if (self.server.options.onlyServeLocal and + self.client_address[0] != '127.0.0.1'): + return self.send_error('401', 'Unauthorized host.') + if fields is None: fields = {} self.fields = fields |